/* Caparelli Creations — Custom Styles */

/* Base adjustments */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Smooth focus outlines */
*:focus-visible {
    outline: 2px solid #c22148;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: #fce7eb;
    color: #841632;
}

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}

/* Ensure text contrast */
.text-neutral-600,
.text-neutral-700,
.text-neutral-800 {
    color: inherit;
}

/* Mobile menu transitions */
#mobile-menu {
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}

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

/* Nav links hover effect */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #c22148;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 60%;
}

/* Mobile link hover */
.mobile-link {
    transition: all 0.2s ease;
}

/* Print styles */
@media print {
    #navbar,
    #back-to-top,
    .btn-primary {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* Reduced motion */
@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;
    }
    
    .float-1,
    .float-2,
    .float-3 {
        animation: none;
    }
    
    .reveal-up {
        opacity: 1;
        transform: none;
    }
}

/* High contrast mode */
@media (forced-colors: active) {
    .btn-primary {
        border: 2px solid ButtonText;
    }
    
    .stat-card,
    .service-card {
        border: 1px solid ButtonText;
    }
}

/* Touch device adjustments */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover {
        transform: none;
        box-shadow: none;
    }
    
    .stat-card:hover {
        transform: none;
        box-shadow: none;
    }
    
    .gallery-item:hover .gallery-img {
        transform: none;
    }
}

/* Wider screens */
@media (min-width: 1920px) {
    .max-w-7xl {
        max-width: 80rem;
    }
}
