/* ===== Custom Styles for UpperCuts Hair Studio ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f7f4;
}
::-webkit-scrollbar-thumb {
    background: #28634f;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #1f4f3f;
}

/* Selection color */
::selection {
    background: #28634f;
    color: #fdfcf8;
}

/* Reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal.delay-100 {
        transition-delay: 0.1s;
    }

    .reveal.delay-200 {
        transition-delay: 0.2s;
    }

    .reveal.delay-300 {
        transition-delay: 0.3s;
    }
}

/* Fallback: ensure content is visible without JS */
@supports not (animation: none) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(253, 252, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(26, 64, 51, 0.08);
}

.navbar-scrolled .font-serif,
.navbar-scrolled a:not(.bg-emerald-700) {
    color: #1a4033 !important;
}

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

/* Subtle pulse for the status dot */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

/* Image lazy load placeholder */
img {
    background: linear-gradient(135deg, #dceee5 0%, #ece3c8 100%);
}

/* Form focus states */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(40, 99, 79, 0.15);
}

/* Button active states */
button:active,
a:active {
    transform: scale(0.98);
}

/* Print styles */
@media print {
    nav, #contactForm, .reveal {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    a {
        color: #000;
    }
}
