/* ==========================================================================
   VETNASA - Brigadeiro Landing Page Custom CSS (brigadeiro.css)
   ========================================================================== */

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .65s cubic-bezier(0.16, 1, 0.3, 1), transform .65s cubic-bezier(0.16, 1, 0.3, 1);
}
/* Desktop: lateral */
@media (min-width: 768px) {
    .reveal-left  { opacity: 0; transform: translateX(-48px); transition: opacity .7s cubic-bezier(0.16,1,0.3,1), transform .7s cubic-bezier(0.16,1,0.3,1); }
    .reveal-right { opacity: 0; transform: translateX( 48px); transition: opacity .7s cubic-bezier(0.16,1,0.3,1), transform .7s cubic-bezier(0.16,1,0.3,1); }
}
.reveal.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: none;
}

/* ── Page Loader PREMIUM ── */
#site-loader {
    position: fixed; inset: 0; z-index: 9999;
    background: #00096b;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    overflow: hidden;
    transition: opacity .7s cubic-bezier(0.4,0,0.2,1), transform .7s cubic-bezier(0.4,0,0.2,1);
}
#site-loader.hide {
    opacity: 0;
    transform: scale(1.08);
    pointer-events: none;
}
/* fundo gradiente animado */
#loader-bg {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 40%, #0a1e8a 0%, #00096b 50%, #000540 100%);
    animation: bgShift 4s ease-in-out infinite alternate;
}
@keyframes bgShift {
    from { background-position: 0% 50%; }
    to   { background-position: 100% 50%; }
}
/* orbs flutuantes */
.loader-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: orbFloat 5s ease-in-out infinite alternate;
    opacity: .35;
}
.loader-orb-1 { width:320px;height:320px;background:#2c9998;top:-80px;left:-80px;animation-delay:0s; }
.loader-orb-2 { width:260px;height:260px;background:#00096b;bottom:-60px;right:-60px;animation-delay:1.5s; }
.loader-orb-3 { width:180px;height:180px;background:#ffe100;top:60%;left:65%;animation-delay:.8s;opacity:.12; }
@keyframes orbFloat {
    from { transform: translate(0,0) scale(1); }
    to   { transform: translate(20px,20px) scale(1.1); }
}
/* logo */
#loader-logo {
    position: relative; z-index: 2;
    width: 220px;
    animation: logoIn .9s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes logoIn {
    from { opacity:0; transform: scale(.7) translateY(20px); }
    to   { opacity:1; transform: scale(1) translateY(0); }
}
/* tagline */
#loader-tag {
    position: relative; z-index:2;
    color: rgba(255,255,255,.6);
    font-size: .85rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    margin-top: 18px;
    animation: tagIn .9s .3s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes tagIn {
    from { opacity:0; transform: translateY(12px); }
    to   { opacity:1; transform: translateY(0); }
}
/* barra de progresso */
#loader-bar-wrap {
    position: relative; z-index:2;
    width: 180px; height: 3px;
    background: rgba(255,255,255,.15);
    border-radius: 99px;
    margin-top: 36px;
    overflow: hidden;
    animation: tagIn .9s .5s both;
}
#loader-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #2c9998, #ffe100);
    border-radius: 99px;
    animation: barFill 1.6s .4s cubic-bezier(0.4,0,0.2,1) forwards;
}
@keyframes barFill {
    to { width: 100%; }
}
/* pontos */
#loader-dots {
    position: relative; z-index:2;
    display: flex; gap: 8px;
    margin-top: 20px;
    animation: tagIn .9s .6s both;
}
#loader-dots span {
    width:7px; height:7px;
    background: rgba(255,255,255,.4);
    border-radius: 50%;
    animation: dotBounce 1.2s ease-in-out infinite;
}
#loader-dots span:nth-child(2) { animation-delay:.15s; }
#loader-dots span:nth-child(3) { animation-delay:.3s; }
@keyframes dotBounce {
    0%,80%,100% { transform:scale(1);   opacity:.4; }
    40%          { transform:scale(1.5); opacity:1; }
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .6; transform: scale(1.3); }
}
.pulse-dot {
    animation: pulse-dot 1.6s infinite;
}

#navbar.scrolled {
    background: rgba(0, 9, 107, 0.97);
    backdrop-filter: blur(14px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.1);
    padding-top: 0.85rem !important;
    padding-bottom: 0.85rem !important;
}
#navbar.scrolled img {
    height: 3.1rem !important;
}

/* ── Mobile Sidebar Drawer ── */
#mobile-menu-overlay {
    transition: opacity 0.3s ease-in-out;
}
#mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
#mobile-menu {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
#mobile-menu.open {
    transform: translateX(0);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.animate-float {
    animation: float 5s ease-in-out infinite;
}

.gallery-item {
    position: relative;
    overflow: hidden;
}
.gallery-img {
    transition: transform 0.5s ease;
}
