/* ============================================
   Polish Pottery Designs — Custom Styles
   ============================================ */

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

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

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #fafaf5;
}
::-webkit-scrollbar-thumb {
    background: #d9a4b8;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a34d6a;
}

/* Selection */
::selection {
    background-color: #f5e8ed;
    color: #4d202e;
}

/* ============================================
   Reveal Animations (progressive enhancement)
   Only active when JS runs and user prefers motion
   ============================================ */
.reveal-element {
    opacity: 1;
    transform: none;
    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);
}

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

    .reveal-element:not(.revealed) {
        opacity: 0;
        transform: translateY(24px);
    }

    .reveal-element.revealed {
        animation: none;
    }
}

/* ============================================
   Mobile Menu
   ============================================ */
#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu:not(.active) {
    opacity: 0;
    pointer-events: none;
}

/* Hamburger animation */
#mobile-toggle.active .mobile-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
#mobile-toggle.active .mobile-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
#mobile-toggle.active .mobile-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ============================================
   Header scroll state
   ============================================ */
#site-header.scrolled {
    box-shadow: 0 1px 0 rgba(140, 58, 82, 0.08);
}

/* ============================================
   Form select arrow
   ============================================ */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23d9a4b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 2rem !important;
}

/* ============================================
   Subtle hover underline for links
   ============================================ */
a:not(.font-sans):hover {
    text-decoration: none;
}

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

input:focus-visible,
textarea:focus-visible,
select:focus-visible,
button:focus-visible {
    outline: none;
}

/* ============================================
   Print styles
   ============================================ */
@media print {
    header, footer, #contact {
        display: none;
    }
    body {
        color: #1c1917;
        background: white;
    }
    a {
        color: #1c1917;
    }
}
