/* Custom styles for Naked Skin Care AZ */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf9f5;
}
::-webkit-scrollbar-thumb {
    background: #d95a3a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c44426;
}

/* Selection color */
::selection {
    background: #f8d0c6;
    color: #6c271b;
}

/* Reveal animations - progressive enhancement only */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal-up {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal-up.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service card hover effect */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Navbar background on scroll */
.nav-scrolled {
    background: rgba(254, 253, 249, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.nav-transparent {
    background: transparent !important;
}

/* Mobile menu transitions */
.mobile-menu-open {
    transform: translateX(0) !important;
}

.mobile-menu-closed {
    transform: translateX(100%) !important;
}

/* Button focus styles */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #d95a3a;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* Input focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Image loading placeholder */
img {
    background-color: #f5f0e8;
}

/* Subtle gradient for hero text shadow */
.hero-title {
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

/* Gallery image hover overlay */
.group:hover .gallery-overlay {
    opacity: 1;
}

/* Loading states */
.btn-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Print styles */
@media print {
    nav, .cta-section, #contact {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .service-card {
        border-width: 2px;
    }
    
    button, a {
        border: 2px solid currentColor;
    }
}

/* 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;
    }
}

/* Landscape mobile adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .min-h-screen {
        min-height: auto;
        padding: 4rem 0;
    }
    
    h1 {
        font-size: 2.5rem !important;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .service-card:hover {
        transform: none;
    }
    
    .group:hover .gallery-overlay {
        opacity: 0;
    }
}
