/* Supreme Nails & Spa — Custom Styles */
/* These styles supplement the inline critical CSS in index.html */

/* Smooth scrolling for the whole page */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: rgba(4, 120, 87, 0.2);
    color: #064e3b;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fef9f0;
}
::-webkit-scrollbar-thumb {
    background: #047857;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #065f46;
}

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

/* Mobile nav overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Service card image hover effect */
.service-card:hover .service-icon {
    transform: scale(1.05) rotate(3deg);
    transition: transform 0.3s ease;
}
.service-icon {
    transition: transform 0.3s ease;
}

/* Gallery item overlay */
.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 78, 59, 0.5), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    border-radius: 16px;
}
.gallery-item:hover::before {
    opacity: 1;
}

/* Testimonial card hover */
.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    transition: all 0.3s ease;
}

/* Button ripple effect on click */
.btn-primary:active,
.btn-secondary:active,
.cta-form button:active {
    transform: translateY(0) scale(0.98);
}

/* Reduced motion preferences */
@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;
    }
    .floating-card {
        animation: none;
    }
}

/* Print styles */
@media print {
    nav, .hamburger, .cta-form, .floating-card {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
    .hero {
        min-height: auto;
        padding: 2rem;
    }
}
