/* ============================================
   Julie A. Stern — Mortgage Professional
   Custom Styles
   ============================================ */

/* ---------- Animations ---------- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeUp {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ---------- Scroll Indicator ---------- */
.scroll-indicator {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 0.8; transform: scaleY(1.2); }
}

/* ---------- Reveal on Scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal[data-delay="100"] { transition-delay: 0.1s; }
.reveal[data-delay="200"] { transition-delay: 0.2s; }
.reveal[data-delay="300"] { transition-delay: 0.3s; }

/* ---------- Navbar ---------- */
.navbar-scrolled {
    background: rgba(253, 248, 243, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.navbar-scrolled .nav-logo-text {
    color: #2D2A26 !important;
}

.navbar-scrolled .nav-logo-sub {
    color: #9C9284 !important;
}

.navbar-hero .nav-logo-text {
    color: #fff !important;
}

.navbar-hero .nav-logo-sub {
    color: rgba(255, 255, 255, 0.7) !important;
}

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

.mobile-menu-open .menu-line-1 {
    transform: translateY(5px) rotate(45deg);
}

.mobile-menu-open .menu-line-2 {
    opacity: 0;
    width: 0 !important;
}

.mobile-menu-open .menu-line-3 {
    transform: translateY(-5px) rotate(-45deg);
}

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

.mobile-menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu-open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* ---------- Smooth Scroll ---------- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* ---------- Selection ---------- */
::selection {
    background: rgba(184, 92, 56, 0.2);
    color: #5F2C1D;
}

/* ---------- Form Focus States ---------- */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FDF8F3;
}

::-webkit-scrollbar-thumb {
    background: #D4CFC4;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #B8B0A2;
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 767px) {
    html {
        scroll-padding-top: 70px;
    }

    #hero h1 {
        font-size: 2.75rem;
    }

    #hero h1 br {
        display: none;
    }

    #hero h1::after {
        content: '';
        display: block;
    }
}

@media (min-width: 768px) {
    #hero h1 {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    #hero h1 {
        font-size: 4.5rem;
    }
}

/* ---------- Print Styles ---------- */
@media print {
    nav, #contact, footer, .scroll-indicator {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }

    section {
        page-break-inside: avoid;
    }
}
