/* ============================================
   Consilium Advisory — Custom Styles
   ============================================ */

/* Selection styling */
::selection {
    background-color: #C9A227;
    color: white;
}

/* ---- Navbar Solid Scroll State ---- */
.nav-solid {
    background-color: rgba(250, 250, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px -2px rgba(11, 31, 58, 0.08);
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

/* ---- Scroll Reveal Animations ---- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.scroll-reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}
.scroll-reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.scroll-reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}
.scroll-reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.scroll-reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays for children */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ---- Marquee Animation (TrustedBy) ---- */
@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.marquee-track {
    animation: marquee 60s linear infinite;
}

/* ---- Mobile Menu Transitions ---- */
#mobile-overlay {
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
#mobile-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
#mobile-menu {
    opacity: 0;
    transform: scale(0.95) translateY(-20px);
    filter: blur(10px);
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                filter 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}
#mobile-menu.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0px);
    pointer-events: auto;
}

/* ---- No Scrollbar Utility ---- */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ---- Card Hover Lift ---- */
.card-hover { transition: transform 0.5s ease, box-shadow 0.5s ease; }
.card-hover:hover { transform: translateY(-10px); }

/* ---- Page Fade In ---- */
.page-fade-in { animation: fadeIn 0.5s ease-out; }
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ---- Insight Card Transition ---- */
.insight-card {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* ---- Custom z-index ---- */
.z-30 { z-index: 30; }

/* ---- Prose-like article styling (Insight Detail) ---- */
.article-body p {
    margin-bottom: 2rem;
}
.article-body h3 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}
