/* Cubamex — Additional custom styles */

/* Ensure smooth rendering on all devices */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #2dd4bf;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background-color: rgba(45, 212, 191, 0.3);
    color: #0f172a;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Ensure hero is always visible */
#hero {
    min-height: 100vh;
    min-height: 100dvh;
}

/* Mobile menu animation fix */
#mobileMenu {
    will-change: max-height;
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Prevent layout shift on menu cards */
.menu-card {
    contain: layout style;
}

/* Reduced motion support */
@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;
    }
    
    .hero-gradient {
        background: linear-gradient(135deg, #134e4a 0%, #0f766e 25%, #042f2e 50%, #1e293b 75%, #0f172a 100%);
        background-size: 100% 100%;
    }
    
    .cta-pulse {
        animation: none;
    }
}

/* Tablet and large screen adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    .font-display {
        font-size: clamp(2.5rem, 5vw, 3.5rem);
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .teal-line {
        background: Highlight;
    }
    
    .menu-card {
        border: 1px solid ButtonText;
    }
}

/* Print styles */
@media print {
    nav,
    #hero .absolute.bottom-8,
    .cta-pulse {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}
