/* Custom styles for Claddagh Beauty Bar & Salon */

/* Smooth transitions for all interactive elements */
a, button, input, textarea, select {
    transition: all 0.3s ease;
}

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

/* Custom selection color */
::selection {
    background-color: #ffd3c6;
    color: #1f2027;
}

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

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

/* Reduced motion preference */
@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;
    }
    
    .fade-in {
        opacity: 1;
        transform: none;
    }
    
    .img-zoom {
        transition: none;
    }
    
    .img-zoom:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    nav, .mobile-menu, button {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .fade-in {
        opacity: 1 !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid currentColor;
    }
    
    .service-card {
        border: 1px solid #000;
    }
}

/* Tablet and up adjustments */
@media (min-width: 768px) {
    .hero-line {
        width: 1px;
    }
}

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

/* Touch device optimizations */
@media (hover: none) {
    .service-card:hover {
        border-bottom-color: transparent;
        transform: none;
    }
    
    .img-zoom:hover {
        transform: none;
    }
}

/* Dark mode support (if browser prefers) */
@media (prefers-color-scheme: dark) {
    :root {
        /* These would be overridden by Tailwind's dark mode classes if implemented */
    }
}

/* Ensure all text is readable */
.text-charcoal-500 {
    color: #616272;
}

.text-charcoal-400 {
    color: #808191;
}

/* Ensure proper contrast for coral text on light backgrounds */
.text-coral-600 {
    color: #f04e24;
}

.text-coral-500 {
    color: #ff6b44;
}

/* Button contrast */
.btn-primary {
    background-color: #1f2027;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #353641;
}

/* Form focus states */
input:focus,
textarea:focus,
select:focus {
    border-color: #ff8a6c;
    box-shadow: 0 0 0 3px rgba(255, 138, 108, 0.1);
}

/* Ensure mobile menu is accessible */
.mobile-menu {
    position: fixed;
    top: 5rem;
    right: 0;
    width: 16rem;
    height: calc(100vh - 5rem);
    background-color: #ffffff;
    border-left: 1px solid #ececf0;
    z-index: 50;
}

/* Ensure proper spacing on mobile */
@media (max-width: 767px) {
    section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}
