/* ============================================================
   ACNSG — EFEITOS VISUAIS (layout animado e dinâmico)
   Carregado depois de style.css. Tudo respeita
   prefers-reduced-motion e é mais leve no mobile.
   ============================================================ */

/* ------------------------------------------------------------
   1) HEADER DINÂMICO — encolhe + efeito glass ao rolar
   ------------------------------------------------------------ */
.site-header {
    transition: background .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.site-header .header-inner {
    transition: padding .35s ease;
}
.site-header .brand-logo {
    transition: width .35s ease, height .35s ease;
}
.site-header.is-scrolled {
    background: rgba(13, 36, 83, .97);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
    border-bottom-color: rgba(212, 175, 90, .85);
}
.site-header.is-scrolled .header-inner {
    padding-top: .45rem;
    padding-bottom: .45rem;
}
.site-header.is-scrolled .brand-logo {
    width: 64px;
    height: 64px;
}

/* Underline animado nos links do menu (exceto CTA) */
.nav-list > .nav-item:not(.nav-cta) > a,
.nav-list > .nav-item.has-dropdown > .nav-dropdown-toggle {
    position: relative;
}
.nav-list > .nav-item:not(.nav-cta) > a::after,
.nav-list > .nav-item.has-dropdown > .nav-dropdown-toggle::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 2.5px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-2));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}
.nav-list > .nav-item:not(.nav-cta) > a:hover::after,
.nav-list > .nav-item:not(.nav-cta).active > a::after,
.nav-list > .nav-item.has-dropdown > .nav-dropdown-toggle:hover::after,
.nav-list > .nav-item.has-dropdown.active > .nav-dropdown-toggle::after {
    transform: scaleX(1);
}
@media (max-width: 980px) {
    .nav-list > .nav-item > a::after,
    .nav-list > .nav-item > .nav-dropdown-toggle::after { display: none; }
}

/* CTA do menu — brilho estático (animação de sombra era pesada) */
.nav-item.nav-cta a { box-shadow: 0 4px 14px rgba(212, 175, 90, .45); }

/* ------------------------------------------------------------
   2) BARRA DE PROGRESSO DE SCROLL
   ------------------------------------------------------------ */
#scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 4px;
    width: 100%;
    z-index: 9000;
    pointer-events: none;
    background: transparent;
}
#scroll-progress .bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-2) 60%, #f4e4bc 100%);
    box-shadow: 0 0 12px rgba(212, 175, 90, .7);
    border-radius: 0 4px 4px 0;
    transition: width .08s linear;
}

/* ------------------------------------------------------------
   3) HERO — entrada escalonada + indicador de scroll
   ------------------------------------------------------------ */
.hero-heroico .hero-heroico-content { animation: none !important; }

@keyframes heroChild {
    from { opacity: 0; transform: translateY(34px); }
    to   { opacity: 1; transform: none; }
}
.hero-heroico .hero-heroico-content h1 {
    animation: heroChild .85s cubic-bezier(.2, .7, .2, 1) .1s both;
}
.hero-heroico .hero-heroico-content .lead {
    animation: heroChild .85s cubic-bezier(.2, .7, .2, 1) .35s both;
}
.hero-heroico .hero-heroico-content .hero-ctas {
    animation: heroChild .85s cubic-bezier(.2, .7, .2, 1) .6s both;
}

/* Indicador "role para baixo" */
.hero-scroll-ind {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 44px; height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scrollBounce 2s ease-in-out infinite;
    transition: background .25s, color .25s;
}
.hero-scroll-ind:hover { background: var(--gold); color: var(--navy); }
.hero-scroll-ind svg { width: 22px; height: 22px; }
@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(10px); }
}
@media (max-width: 600px) { .hero-scroll-ind { display: none; } }

/* ------------------------------------------------------------
   4) BOTÕES — efeito shine (varredura de luz)
   ------------------------------------------------------------ */
.btn, .btn-hero-cta, .btn-flip, .btn-cta, .btn-acnsg-primary {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.btn::before, .btn-hero-cta::before, .btn-flip::before,
.btn-cta::before, .btn-acnsg-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -80%;
    width: 50%; height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .45), transparent);
    transform: skewX(-20deg);
    transition: left .55s ease;
    pointer-events: none;
    z-index: 1;
}
.btn:hover::before, .btn-hero-cta:hover::before, .btn-flip:hover::before,
.btn-cta:hover::before, .btn-acnsg-primary:hover::before {
    left: 130%;
}

/* .btn-cta — estava sem estilo definido (link invisível em fundo navy).
   Agora é botão dourado padrão do site. */
.btn-cta {
    display: inline-block;
    background: var(--gold);
    color: var(--navy) !important;
    padding: .9rem 2.2rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    letter-spacing: .02em;
    transition: background .25s, transform .25s, box-shadow .25s;
    box-shadow: 0 6px 18px rgba(212, 175, 90, .35);
}
.btn-cta:hover {
    background: var(--gold-2);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(212, 175, 90, .55);
}

/* CTA dourado do hero — brilho estático */
.btn-hero-cta.btn-hero-gold { box-shadow: 0 4px 24px rgba(212, 175, 90, .55); }

/* ------------------------------------------------------------
   5) STATS / SEÇÃO NAVY — fundo vivo + glow nos números
   ------------------------------------------------------------ */
.section-dark {
    position: relative;
    overflow: hidden;
}
.section-dark::before {
    content: '';
    position: absolute;
    inset: -50%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 25% 30%, rgba(212, 175, 90, .14) 0%, transparent 32%),
        radial-gradient(circle at 75% 70%, rgba(139, 195, 74, .10) 0%, transparent 30%),
        radial-gradient(circle at 60% 20%, rgba(232, 194, 100, .08) 0%, transparent 28%);
    animation: darkDrift 16s ease-in-out infinite alternate;
    will-change: transform;
}
@keyframes darkDrift {
    from { transform: translate(0, 0) rotate(0deg); }
    to   { transform: translate(6%, 4%) rotate(4deg); }
}
.section-dark > .container { position: relative; z-index: 1; }

/* ------------------------------------------------------------
   6) PARCEIROS — marquee infinito (criado via JS)
   ------------------------------------------------------------ */
.partner-marquee {
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
    margin: 1.5rem auto 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.partner-marquee-track {
    display: flex;
    align-items: center;
    gap: 2rem;
    width: max-content;
    animation: marqueeScroll var(--marquee-dur, 35s) linear infinite;
    will-change: transform;
}
.partner-marquee:hover .partner-marquee-track { animation-play-state: paused; }
@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.partner-marquee .partner-link {
    flex: 0 0 auto;
    width: 220px;
}
.partner-marquee .partner-link figure {
    width: 100%;
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 1rem;
    margin: 0;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.partner-marquee .partner-link:hover figure {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 12px 26px rgba(13, 36, 83, .14);
    border-color: var(--gold);
}
.partner-marquee .partner-link figure img {
    max-width: 100%;
    max-height: 100%;
    width: auto; height: auto;
    object-fit: contain;
}
@media (max-width: 600px) {
    .partner-marquee .partner-link { width: 160px; }
}

/* ------------------------------------------------------------
   8) BOTÃO VOLTAR AO TOPO
   ------------------------------------------------------------ */
#back-to-top {
    position: fixed;
    right: 22px;
    bottom: 92px;
    z-index: 8000;
    width: 52px; height: 52px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    color: var(--navy);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(13, 36, 83, .3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px) scale(.85);
    transition: opacity .35s ease, transform .35s ease, visibility .35s, box-shadow .25s;
}
#back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
#back-to-top:hover {
    box-shadow: 0 12px 32px rgba(212, 175, 90, .5);
    transform: translateY(-4px) scale(1.05);
}
#back-to-top svg { width: 24px; height: 24px; }
@media (max-width: 600px) {
    #back-to-top { width: 46px; height: 46px; right: 16px; bottom: 80px; }
}

/* ------------------------------------------------------------
   9) IMAGENS — fade-in suave ao carregar
   ------------------------------------------------------------ */
img.img-fade {
    opacity: 0;
    transform: scale(1.025);
    transition: opacity .6s ease, transform .8s ease;
}
img.img-fade.img-loaded {
    opacity: 1;
    transform: none;
}

/* ------------------------------------------------------------
   10) CARDS — tilt 3D (JS) + sheen na imagem no hover
   ------------------------------------------------------------ */
.js-tilt { will-change: transform; }
.js-tilt.tilting { transition: none !important; }

.cards-action .card figure,
.tipologia-image,
.album-cover {
    position: relative;
}
.cards-action .card figure::after,
.tipologia-image::after {
    content: '';
    position: absolute;
    top: 0; left: -90%;
    width: 60%; height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .35), transparent);
    transform: skewX(-18deg);
    pointer-events: none;
    z-index: 2;
    transition: left .65s ease;
}
.cards-action .card:hover figure::after,
.tipologia-card:hover .tipologia-image::after {
    left: 140%;
}

/* ------------------------------------------------------------
   ACESSIBILIDADE / MOBILE — desliga o que pesa
   ------------------------------------------------------------ */
@media (max-width: 768px) {
    .section-dark::before { animation: none; }
    .nav-item.nav-cta a { animation: none; }
    .btn-hero-cta.btn-hero-gold { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
    .site-header, .site-header .header-inner, .site-header .brand-logo { transition: none; }
    .nav-item.nav-cta a,
    .btn-hero-cta.btn-hero-gold,
    .hero-scroll-ind,
    .section-dark::before,
    .partner-marquee-track,
    .wave-sep svg { animation: none !important; }
    .hero-heroico .hero-heroico-content h1,
    .hero-heroico .hero-heroico-content .lead,
    .hero-heroico .hero-heroico-content .hero-ctas { animation: none !important; opacity: 1; }
    .btn::before, .btn-hero-cta::before, .btn-flip::before,
    .btn-cta::before, .btn-acnsg-primary::before,
    .cards-action .card figure::after,
    .tipologia-image::after { display: none; }
    .album-card .album-cover::after { display: none; }
    img.img-fade { opacity: 1 !important; transform: none !important; transition: none; }
    #scroll-progress { display: none; }
    #back-to-top { transition: none; }
}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

/* ------------------------------------------------------------
   11) GALERIA — overlay "Ver álbum", skeleton, chips com nº
   ------------------------------------------------------------ */
.album-card .album-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(13, 36, 83, .82) 100%);
    opacity: 0;
    transition: opacity .35s ease;
    z-index: 1;
    pointer-events: none;
}
/* Moldura dourada que se desenha + rótulo "Ver álbum" dentro dela */
.album-card .album-cover::after {
    content: 'Ver álbum →';
    position: absolute;
    inset: 12px;
    border: 2px solid var(--gold);
    border-radius: 8px;
    display: flex;
    align-items: flex-end;
    padding: .65rem .8rem;
    color: #fff;
    font-weight: 800;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: 0;
    transform: scale(1.12);
    transition: opacity .4s ease, transform .4s ease;
    z-index: 2;
    pointer-events: none;
    text-shadow: 0 2px 8px rgba(0,0,0,.45);
}
.album-card:hover .album-cover::before { opacity: 1; }
.album-card:hover .album-cover::after { opacity: 1; transform: scale(1); }

/* Skeleton shimmer enquanto a capa carrega */
.album-cover,
.card-info-img,
.destaque-img {
    background-image: linear-gradient(100deg,
        rgba(13,36,83,.05) 30%, rgba(13,36,83,.12) 50%, rgba(13,36,83,.05) 70%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.6s linear 14;
}
@keyframes skeletonShimmer {
    from { background-position: 200% 0; }
    to   { background-position: -200% 0; }
}

/* Nº de álbuns nos chips de filtro */
.chip-count {
    display: inline-block;
    background: rgba(13, 36, 83, .08);
    font-size: .7rem;
    font-weight: 800;
    padding: .05rem .45rem;
    border-radius: 999px;
    margin-left: .2rem;
}
.chip.chip-ativo .chip-count { background: rgba(13, 36, 83, .15); }

/* ------------------------------------------------------------
   12) LIGHTBOX — fade entre fotos, spinner e legenda
   ------------------------------------------------------------ */
.lightbox-img {
    opacity: 0;
    transition: opacity .3s ease;
}
.lightbox-img.lightbox-img-in { opacity: 1; }

.lightbox-spinner {
    position: absolute;
    top: 50%; left: 50%;
    width: 46px; height: 46px;
    margin: -23px 0 0 -23px;
    border: 4px solid rgba(255, 255, 255, .2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: lbSpin .8s linear infinite;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}
.lightbox.carregando .lightbox-spinner { opacity: 1; }
@keyframes lbSpin { to { transform: rotate(360deg); } }

.lightbox-legenda {
    position: absolute;
    bottom: 4.2rem;
    left: 50%;
    transform: translateX(-50%);
    max-width: min(80vw, 700px);
    background: rgba(13, 36, 83, .85);
    color: #fff;
    font-size: .92rem;
    line-height: 1.45;
    padding: .55rem 1.2rem;
    border-radius: 10px;
    text-align: center;
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .album-cover, .card-info-img, .destaque-img { animation: none; }
    .lightbox-img { transition: none; opacity: 1; }
}


/* ------------------------------------------------------------
   13) WHATSAPP FLUTUANTE
   ------------------------------------------------------------ */
#whats-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 8000;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
    transition: transform .25s ease, box-shadow .25s ease;
}
#whats-float::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, .7);
    animation: whatsRing 2.4s ease-out infinite;
    pointer-events: none;
}
@keyframes whatsRing {
    0%        { transform: scale(1);    opacity: .8; }
    70%, 100% { transform: scale(1.55); opacity: 0; }
}
#whats-float:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 14px 32px rgba(37, 211, 102, .6);
    color: #fff;
}
#whats-float svg { width: 30px; height: 30px; }
@media (max-width: 600px) {
    #whats-float { width: 50px; height: 50px; right: 16px; bottom: 16px; }
    #whats-float svg { width: 26px; height: 26px; }
}

/* ------------------------------------------------------------
   14) BARRA LGPD
   ------------------------------------------------------------ */
#lgpd-bar[hidden] { display: none !important; }
#lgpd-bar {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 8500;
    width: min(680px, calc(100vw - 2rem));
    background: rgba(13, 36, 83, .97);
    color: #d4d8e4;
    border: 1px solid rgba(212, 175, 90, .5);
    border-radius: 14px;
    padding: 1rem 1.3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .35);
}
#lgpd-bar p { margin: 0; font-size: .85rem; line-height: 1.5; flex: 1; }
#lgpd-bar strong { color: var(--gold); }
#lgpd-bar button {
    background: var(--gold);
    color: var(--navy);
    border: 0;
    border-radius: 999px;
    font-family: inherit;
    font-weight: 800;
    font-size: .85rem;
    padding: .6rem 1.4rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .2s, transform .2s;
}
#lgpd-bar button:hover { background: var(--gold-2); transform: translateY(-1px); }
@media (max-width: 600px) {
    #lgpd-bar { flex-direction: column; text-align: center; padding: 1rem; bottom: 80px; }
}

/* ------------------------------------------------------------
   15) BREADCRUMB (heroes navy)
   ------------------------------------------------------------ */
.breadcrumb-trilha { margin-bottom: .9rem; }
.breadcrumb-trilha ol {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .25rem;
    font-size: .82rem;
    letter-spacing: .04em;
}
.breadcrumb-trilha li { display: flex; align-items: center; gap: .25rem; color: var(--gold); }
.breadcrumb-trilha li + li::before { content: '/'; color: rgba(255, 255, 255, .45); margin-right: .25rem; }
.breadcrumb-trilha a { color: #c7cfe2; transition: color .2s; }
.breadcrumb-trilha a:hover { color: var(--gold); }
