/* Custom styles for Conekta Inc. */

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

/* Animation delays for staggered reveals */
.reveal:nth-child(1) { transition-delay: 0.1s; }
.reveal:nth-child(2) { transition-delay: 0.2s; }
.reveal:nth-child(3) { transition-delay: 0.3s; }
.reveal:nth-child(4) { transition-delay: 0.4s; }
.reveal:nth-child(5) { transition-delay: 0.5s; }
.reveal:nth-child(6) { transition-delay: 0.6s; }

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

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

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

/* Print styles */
@media print {
    nav,
    .animate-bounce,
    #contact-form {
        display: none;
    }
    
    body {
        background: white !important;
    }
    
    .bg-burgundy-900,
    .bg-burgundy-950 {
        background: #3a0c13 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Reduced motion preference */
@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;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .animate-bounce {
        animation: none;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .btn-primary {
        border: 2px solid currentColor;
    }
    
    .bg-burgundy-700 {
        background: currentColor !important;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .group:hover {
        transform: none;
    }
    
    .group:hover::before {
        display: none;
    }
}
