/*
 * Alma's Beauty Shop — Custom Styles
 * Minimalist, clean, charcoal + coral palette
 */

/* Base reset & typography */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

/* Selection color */
::selection {
    background: rgba(242, 112, 95, 0.3);
    color: #fff;
}

/* Reduce 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-up {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Thin line utility */
.thin-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, #F2705F, transparent);
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile menu animations */
.hamburger-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menuBtn.active .hamburger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
#menuBtn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}
#menuBtn.active .hamburger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Fade-up animation (progressive enhancement) */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

/* Custom select styling */
select option {
    background: #2a2a2a;
    color: #fff;
    padding: 0.5rem;
}

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