/* Custom styles for Bruce Priemer Insurance Services */

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 72px;
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

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

/* FAQ accordion */
.faq-item {
    transition: box-shadow 0.2s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 20px rgba(107, 33, 168, 0.08);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-content.open {
    max-height: 300px;
}

.faq-icon {
    transition: transform 0.2s ease;
}

.faq-icon.rotated {
    transform: rotate(45deg);
}

/* Scroll animations */
.scroll-animate {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate[data-animate="true"] {
    opacity: 0;
    transform: translateY(24px);
}

.scroll-animate.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .scroll-animate {
        opacity: 1;
        transform: none;
    }
    .scroll-animate[data-animate="true"] {
        opacity: 1;
        transform: none;
    }
    .faq-content {
        transition: none;
    }
    .faq-icon {
        transition: none;
    }
    #back-to-top {
        transition: none;
    }
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf0ff;
}
::-webkit-scrollbar-thumb {
    background: #c084fc;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a855f7;
}

/* Selection color */
::selection {
    background: #c084fc;
    color: #3b0764;
}
