/* ============================================
   AK Nails and Spa — Custom Styles
   Classic & Elegant | Plum + Amber Palette
   ============================================ */

/* --- Base Reset & Typography --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: #C8956C;
    color: white;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FAF7F2;
}
::-webkit-scrollbar-thumb {
    background: #d6bfd8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #bb96be;
}

/* --- Scroll Line Animation --- */
@keyframes scrollDown {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(400%); }
}
.scroll-line {
    animation: scrollDown 1.5s ease-in-out infinite;
}

/* --- Service Card Hover --- */
.service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(123, 45, 94, 0.08);
}

/* --- Navigation Scroll State --- */
#navbar {
    background: transparent;
}
#navbar.scrolled {
    background: rgba(250, 247, 242, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(123, 45, 94, 0.08);
}
#navbar.scrolled #nav-logo-text {
    color: #6a2352;
}
#navbar.scrolled #nav-logo-sub {
    color: #b87a48;
}

/* --- Mobile Menu --- */
#mobile-menu.open {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* --- Focus Styles --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #C8956C;
    outline-offset: 2px;
}

/* --- 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;
    }
    .scroll-line {
        animation: none;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    .hero-headline-line {
        transform: none !important;
    }
    img {
        transition: none !important;
    }
}

/* --- Reveal Animations (Progressive Enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal.delay-1 { transition-delay: 0.1s; }
    .reveal.delay-2 { transition-delay: 0.2s; }
    .reveal.delay-3 { transition-delay: 0.3s; }
}

/* --- Mobile Menu Animations --- */
@media (prefers-reduced-motion: no-preference) {
    .menu-line {
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }
    body.menu-open .menu-line:nth-child(1) {
        transform: translateY(4px) rotate(45deg);
    }
    body.menu-open .menu-line:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    body.menu-open .menu-line:nth-child(3) {
        width: 6px;
        transform: translateY(-4px) rotate(-45deg);
    }
}
