/* ═══════════════════════════════════════════════════════
   Freedom Equity Group — Custom Styles
   Premium Dark Luxury | Burgundy + Blush + Gold
   ═══════════════════════════════════════════════════════ */

/* ── Base ── */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* ── Navigation ── */
.nav-link {
    position: relative;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(6, 6, 9, 0.92) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(201, 162, 39, 0.1) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
}

nav.scrolled .logo-text {
    color: #ffffff !important;
}

/* Mobile menu */
#mobile-menu.active {
    opacity: 1 !important;
    pointer-events: all !important;
}

#mobile-menu.active .mobile-link {
    animation: fadeUp 0.4s ease forwards;
    opacity: 1;
}

#mobile-menu.active .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.active .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.active .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.active .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu.active .mobile-link:nth-child(6) { animation-delay: 0.25s; }

/* Menu button animation */
#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
#menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* ── Hero ── */
@keyframes scroll-indicator {
    0% { top: -12px; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 40px; opacity: 0; }
}

.animate-scroll-indicator {
    animation: scroll-indicator 2s ease-in-out infinite;
}

/* ── Marquee ── */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

/* ── Service Cards ── */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.03) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    border-radius: inherit;
}

.service-card:hover::before {
    opacity: 1;
}

/* ── Process Steps ── */
.process-step::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c9a227, transparent);
    transition: width 0.5s ease;
}

/* ── Testimonial Cards ── */
.testimonial-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .js-loaded .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .js-loaded .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .js-loaded .reveal-delay-1 { transition-delay: 0.1s; }
    .js-loaded .reveal-delay-2 { transition-delay: 0.2s; }
    .js-loaded .reveal-delay-3 { transition-delay: 0.3s; }
    .js-loaded .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Fallback: always visible if JS disabled */
.reveal {
    opacity: 1;
    transform: none;
}

/* ── Gold shimmer on hover for CTA ── */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* ── Selection ── */
::selection {
    background: rgba(161, 34, 34, 0.6);
    color: #ffffff;
}

/* ── Focus visible ── */
:focus-visible {
    outline: 2px solid #c9a227;
    outline-offset: 2px;
}

/* ── Responsive adjustments ── */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.15;
    }
}

/* ── Print ── */
@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }
    nav, .animate-marquee {
        display: none;
    }
}
