/* Custom styles for Ally Insurance & Financial Solutions */

/* Smooth scroll offset for fixed navbar */
html {
    scroll-padding-top: 80px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: #c9a84c;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4b965;
}

/* Selection color */
::selection {
    background: #c9a84c;
    color: #0a1628;
}

/* Thin line utility */
.gold-line {
    width: 48px;
    height: 1px;
    background: #c9a84c;
}

/* Mobile menu animation */
#mobile-menu.open .menu-line:first-child {
    transform: rotate(45deg) translate(4px, 4px);
}
#mobile-menu.open .menu-line:last-child {
    transform: rotate(-45deg) translate(0px, 0px);
}

/* Service card hover effects */
.service-card {
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.service-card:hover {
    border-color: #c9a84c;
    transform: translateY(-2px);
}
.service-card:hover .service-icon {
    color: #c9a84c;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #c9a84c;
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
    .service-card {
        transition: none;
    }
    .nav-link::after {
        transition: none;
    }
}

/* Print styles */
@media print {
    nav, #contact-form, .reveal {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
