/* ============================================
   A3 Beauty Collective — Custom Styles
   ============================================ */

/* Base & Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f3ed;
}
::-webkit-scrollbar-thumb {
    background: #9cc59c;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4d804d;
}

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

/* Hero gradient animation */
@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Navbar scroll state */
#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(30, 48, 30, 0.08);
}

/* Mobile menu transitions */
#mobile-menu {
    transition: max-height 0.35s ease, opacity 0.25s ease;
}
#mobile-menu.hidden {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}
#mobile-menu:not(.hidden) {
    max-height: 500px;
    opacity: 1;
}

/* Menu toggle animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.2s ease;
}
#menu-toggle[aria-expanded="true"] .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
#menu-toggle[aria-expanded="true"] .menu-line:nth-child(2) {
    opacity: 0;
}
#menu-toggle[aria-expanded="true"] .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Mobile links */
.mobile-link {
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
    .reveal * {
        transition: none !important;
    }
    img {
        transition: none !important;
    }
}

/* Print styles */
@media print {
    header, footer, .reveal {
        display: none;
    }
    body {
        color: #1a1a1a;
        background: white;
    }
}
