/* Custom Styles for The Haven Salon */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #289d7a;
}

/* Selection Color */
::selection {
    background: #c5e6d5;
    color: #102a43;
}

/* Animation Keyframes */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Floating Animation */
.float {
    animation: float 3s ease-in-out infinite;
}

/* Gradient Background Animation */
@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Gradient Animation for Hero */
.gradient-animate {
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
}

/* Glass Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, #102a43 0%, #3bb88f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Image Hover Zoom */
.img-zoom {
    overflow: hidden;
}

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

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

/* Card Hover Effect */
.card-hover {
    transition: all 0.3s ease;
}

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

/* Pulse Animation for CTA */
@keyframes pulse-soft {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(59, 184, 143, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(59, 184, 143, 0);
    }
}

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

/* Responsive Typography */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .font-serif {
        font-size: 1.75rem;
    }
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 2px solid #3bb88f;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    nav, .no-print {
        display: none;
    }
    
    body {
        background: white;
    }
}

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

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .text-midnight-600 {
        color: #102a43;
    }
    
    .text-midnight-500 {
        color: #243b53;
    }
}

/* Loading State for Buttons */
button:disabled,
button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Form Input States */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(59, 184, 143, 0.2);
}

/* Smooth Image Loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Prevent Layout Shift */
img {
    object-fit: cover;
}
