/* Custom styles for Renoma website */

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

/* Ensure proper aspect ratio for images */
.aspect-w-16 {
    position: relative;
    padding-bottom: 75%; /* 16:12 ratio */
}

.aspect-w-16 > * {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* Image hover effects */
img {
    transition: transform 0.3s ease;
}

/* Lightbox transitions */
#lightbox {
    transition: opacity 0.3s ease;
}

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

#lightbox:not(.hidden) {
    opacity: 1;
}

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

#mobile-menu.hidden {
    max-height: 0;
}

#mobile-menu:not(.hidden) {
    max-height: 500px;
}

/* Card hover effects */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Button effects */
button, a {
    transition: all 0.2s ease;
}

/* Ensure images don't overflow their containers */
img {
    max-width: 100%;
    height: auto;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #2563eb;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}

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

/* Print styles */
@media print {
    nav, footer, #mobile-menu-btn, .hidden {
        display: none !important;
    }
    
    body {
        background: white;
    }
}
