/* Additional custom styles for The Hudson Salon */

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

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

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

::-webkit-scrollbar-thumb {
    background: #7B2D3B;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5c1e29;
}

/* Loading animation for images */
img {
    opacity: 0;
    transition: opacity 0.5s ease;
}

img.loaded {
    opacity: 1;
}

/* Print styles */
@media print {
    .fixed,
    .mobile-menu {
        display: none !important;
    }
    
    .split-hero {
        grid-template-columns: 1fr !important;
    }
    
    .image-reveal {
        overflow: visible !important;
    }
    
    .service-card {
        break-inside: avoid;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid currentColor;
    }
    
    .form-input {
        border-width: 3px;
    }
}

/* Reduced motion support */
@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;
    }
    
    .image-reveal img {
        transition: none;
    }
    
    .service-card:hover {
        transform: none;
    }
}

/* Focus visible styles */
:focus-visible {
    outline: 3px solid #7B2D3B;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background-color: #7B2D3B;
    color: #FDF9F6;
}

/* Subtle pattern overlay for sections */
.bg-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%237B2D3B' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Gradient text effect */
.text-gradient {
    background: linear-gradient(135deg, #7B2D3B 0%, #F5E6D3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass morphism effect */
.glass {
    background: rgba(253, 249, 246, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Shimmer effect for buttons */
.btn-shimmer {
    position: relative;
    overflow: hidden;
}

.btn-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.btn-shimmer:hover::after {
    left: 100%;
}

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

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Pulse animation for CTAs */
@keyframes pulse-subtle {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(123, 45, 59, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(123, 45, 59, 0);
    }
}

.pulse-cta {
    animation: pulse-subtle 2s infinite;
}

/* Decorative corner accents */
.corner-accent::before,
.corner-accent::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid #7B2D3B;
}

.corner-accent::before {
    top: -10px;
    left: -10px;
    border-right: none;
    border-bottom: none;
}

.corner-accent::after {
    bottom: -10px;
    right: -10px;
    border-left: none;
    border-top: none;
}

/* Image mask effect */
.image-mask {
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

/* Text reveal animation */
.text-reveal {
    display: inline-block;
    overflow: hidden;
}

.text-reveal span {
    display: inline-block;
    transform: translateY(100%);
    transition: transform 0.6s ease;
}

.text-reveal.visible span {
    transform: translateY(0);
}
