/* Custom CSS overrides for Zubu website */

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

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

/* Mobile menu animations */
.mobile-menu {
    transition: all 0.3s ease-in-out;
}

.mobile-menu.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

.mobile-menu:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Testimonial carousel */
.testimonial-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.testimonial-slide.active {
    display: block;
    opacity: 1;
}

.carousel-indicator {
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.carousel-indicator.active {
    background-color: #8BAAF5;
}

.carousel-indicator:not(.active) {
    background-color: rgba(139, 170, 245, 0.3);
}

.carousel-indicator:hover {
    background-color: rgba(139, 170, 245, 0.6);
}

/* Modal animations */
.modal {
    transition: opacity 0.3s ease-in-out;
}

.modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid #8BAAF5;
    outline-offset: 2px;
}

/* Skip link positioning */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only:focus {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 9999;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background-color: #8BAAF5;
    color: white;
    border-radius: 0.5rem;
    text-decoration: none;
}

/* Custom scrollbar for modals */
.modal::-webkit-scrollbar {
    width: 8px;
}

.modal::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.modal::-webkit-scrollbar-thumb {
    background: #8BAAF5;
    border-radius: 4px;
}

.modal::-webkit-scrollbar-thumb:hover {
    background: #7B9FF5;
}

/* Hover effects for interactive elements */
.hover-lift {
    transition: transform 0.2s ease-in-out;
}

.hover-lift:hover {
    transform: translateY(-2px);
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Form validation styles */
.form-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.form-success {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .text-zubu-text-muted {
        color: #1f2937 !important;
    }
    
    .bg-zubu-bg-1,
    .bg-zubu-bg-2,
    .bg-zubu-bg-3 {
        background-color: #ffffff !important;
        border: 1px solid #d1d5db !important;
    }
}

/* Button text visibility fixes */
.bg-zubu-accent-1 {
    color: white !important;
    font-weight: 600;
}

.bg-zubu-accent-1:hover {
    color: white !important;
}

/* Ensure button text is always visible */
a[class*="bg-zubu-accent-1"] {
    color: white !important;
    text-decoration: none;
}

a[class*="bg-zubu-accent-1"]:hover {
    color: white !important;
    text-decoration: none;
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Currently not implementing dark mode as per brand requirements */
    /* This is a placeholder for future implementation if needed */
}

