/* Custom styles for Mirage Nail & Spa */

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

/* Custom font imports are handled in HTML */

/* Base styles */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Display font */
.font-display {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .reveal[data-reveal].revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #557639;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3e5c28;
}

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

#mobile-menu.open {
    max-height: 400px;
}

/* Button hover effects */
.btn-primary {
    background: #557639;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background: #3e5c28;
    transform: translateY(-2px);
}

.btn-secondary {
    border: 2px solid #557639;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.btn-secondary:hover {
    background: #557639;
    color: #fafaf7;
    transform: translateY(-2px);
}

/* Service card hover */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(35, 48, 22, 0.15);
}

/* Image overlay */
.img-overlay {
    position: relative;
    overflow: hidden;
}

.img-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(35, 48, 22, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.img-overlay:hover::after {
    opacity: 1;
}

.img-overlay img {
    transition: transform 0.5s ease;
}

.img-overlay:hover img {
    transform: scale(1.05);
}

/* Form focus styles */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #557639;
    box-shadow: 0 0 0 3px rgba(85, 118, 57, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-display {
        font-size: 2rem;
    }
    
    .font-display.text-4xl {
        font-size: 2.5rem;
    }
    
    .font-display.text-5xl {
        font-size: 3rem;
    }
}

/* Print styles */
@media print {
    nav, .btn-primary, .btn-secondary, #mobile-menu {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .reveal[data-reveal] {
        opacity: 1;
        transform: none;
    }
}

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

/* Focus visible for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #557639;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #233016;
    }
    
    .btn-primary:hover {
        background: #12190b;
    }
}
