/* Custom styles for Shiloh Salon, Spa & Boutique */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #f05530;
}

/* Selection color */
::selection {
    background: #ffd4cc;
    color: #1a1a1a;
}

/* Navbar transition */
#navbar.scrolled {
    background: rgba(254, 253, 251, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

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

/* Pulse animation for dot */
@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

/* Fade in animation for scroll reveals */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal base state (visible by default for progressive enhancement) */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button hover effects */
a.group {
    position: relative;
}

a.group::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ff6b4a;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

a.group:hover::after {
    width: 100%;
}

/* Image hover zoom */
.group img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card hover lift */
.group:hover {
    transform: translateY(-4px);
}

/* Input focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 111, 74, 0.15);
}

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

#mobile-menu.open {
    max-height: 400px;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Decorative patterns */
.bg-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 143, 117, 0.1) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #1a1a1a 0%, #ff6b4a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Soft shadow utility */
.shadow-soft {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.shadow-soft-lg {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
}

/* Print styles */
@media print {
    #navbar,
    .animate-bounce {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
