/* Lexi Nail Spa - Custom Styles */
/* Additional styles beyond Tailwind */

/* Base reset and typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: 80px;
}

/* Smooth transitions for all interactive elements */
a, button, input, select, textarea {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Selection color */
::selection {
    background: rgba(212, 168, 67, 0.3);
    color: #f5d68a;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #d4a843;
    outline-offset: 2px;
}

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

/* Custom select dropdown styling */
select.form-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23d4a843' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* Loading state for buttons */
.btn-gold:active {
    transform: translateY(0) scale(0.98);
}

/* Subtle hover effects for cards */
.service-card, .testimonial-card {
    will-change: transform;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Print styles */
@media print {
    .hero-section,
    .cta-section,
    .particle {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .nav-scrolled {
        background: white !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .service-card {
        border-width: 2px;
    }
    
    .btn-gold {
        border: 2px solid #d4a843;
    }
}

/* Ensure text readability on all backgrounds */
.gold-text,
.gold-shimmer {
    text-shadow: none;
}

/* Ensure all links are readable */
a[href^="tel:"],
a[href^="mailto:"] {
    text-decoration: none;
}

a[href^="tel:"]:hover,
a[href^="mailto:"]:hover {
    text-decoration: underline;
}

/* Mobile responsiveness improvements */
@media (max-width: 640px) {
    .hero-section {
        padding-top: 100px;
    }
    
    #hero h1 {
        font-size: 2.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-card::before {
        font-size: 4rem;
        top: -5px;
        left: 12px;
    }
}

/* Tablet adjustments */
@media (min-width: 641px) and (max-width: 1023px) {
    .hero-section {
        padding-top: 120px;
    }
    
    #hero h1 {
        font-size: 3.5rem;
    }
}

/* Large screen optimizations */
@media (min-width: 1280px) {
    .max-w-7xl {
        max-width: 80rem;
    }
}

/* Ensure contrast ratios meet WCAG AA */
.text-slate-100 {
    color: #f1f5f9;
}

.text-slate-200 {
    color: #e2e8f0;
}

.text-slate-300 {
    color: #cbd5e1;
}

.text-slate-400 {
    color: #94a3b8;
}

.text-slate-500 {
    color: #64748b;
}

.text-slate-600 {
    color: #475569;
}

.text-slate-700 {
    color: #334155;
}

.text-slate-850 {
    color: #1e293b;
}

/* Gold color utilities */
.text-gold-300 {
    color: #f5d68a;
}

.text-gold-400 {
    color: #e8c25a;
}

.text-gold-500 {
    color: #d4a843;
}

.text-gold-600 {
    color: #b8922e;
}

/* Teal color utilities */
.text-teal-300 {
    color: #5eead4;
}

.text-teal-400 {
    color: #2dd4bf;
}

.text-teal-500 {
    color: #14b8a6;
}

/* Background color utilities */
.bg-slate-950 {
    background-color: #080e1a;
}

.bg-slate-900 {
    background-color: #0f172a;
}

.bg-slate-850 {
    background-color: #1e293b;
}

.bg-slate-850\/50 {
    background-color: rgba(30, 41, 59, 0.5);
}

.bg-slate-850\/90 {
    background-color: rgba(30, 41, 59, 0.9);
}

.bg-slate-850\/95 {
    background-color: rgba(30, 41, 59, 0.95);
}

/* Gold border utilities */
.border-gold-500\/20 {
    border-color: rgba(212, 168, 67, 0.2);
}

.border-gold-500\/30 {
    border-color: rgba(212, 168, 67, 0.3);
}

/* Teal border utilities */
.border-teal-500\/20 {
    border-color: rgba(20, 184, 166, 0.2);
}

.border-teal-500\/30 {
    border-color: rgba(20, 184, 166, 0.3);
}

/* Slate border utilities */
.border-slate-700\/50 {
    border-color: rgba(51, 65, 85, 0.5);
}

/* Gold background utilities */
.bg-gold-500\/5 {
    background-color: rgba(212, 168, 67, 0.05);
}

.bg-gold-500\/10 {
    background-color: rgba(212, 168, 67, 0.1);
}

.bg-gold-500\/20 {
    background-color: rgba(212, 168, 67, 0.2);
}

/* Teal background utilities */
.bg-teal-500\/5 {
    background-color: rgba(20, 184, 166, 0.05);
}

.bg-teal-500\/10 {
    background-color: rgba(20, 184, 166, 0.1);
}

.bg-teal-500\/20 {
    background-color: rgba(20, 184, 166, 0.2);
}

.bg-teal-500\/10 {
    background-color: rgba(20, 184, 166, 0.1);
}

/* Subtle animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-gold {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(212, 168, 67, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(212, 168, 67, 0);
    }
}

/* Utility animations */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-pulse-gold {
    animation: pulse-gold 2s ease-in-out infinite;
}

/* Staggered animation delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
