/* Custom styles for Intermex Wire Transfer TX 3689 */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

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

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

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

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(151, 30, 62, 0.08);
}

.nav-scrolled .nav-link {
    color: #7d1c38 !important;
}

.nav-scrolled .nav-link:hover {
    color: #971e3e !important;
    background: #fce7eb !important;
}

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

/* Service card hover animation */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease, border-color 0.4s ease, background-color 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Fade-in animations (progressive enhancement) */
.fade-in-section {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (prefers-reduced-motion: no-preference) {
    .fade-in-section.is-hidden {
        opacity: 0;
        transform: translateY(24px);
    }

    .fade-in-section.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.25s ease;
    opacity: 0;
}

#mobile-menu.open {
    max-height: 500px;
    opacity: 1;
}

/* Back to top button */
#back-to-top {
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

#back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#back-to-top:not(.visible) {
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
}

#back-to-top:hover {
    transform: translateY(-2px) !important;
}

/* Input focus styles */
input:focus,
textarea:focus {
    outline: none;
}

/* Print styles */
@media print {
    nav, #back-to-top, button {
        display: none !important;
    }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
