/* 
 * RockTop Surfaces — Custom Styles
 * Premium dark luxury theme: plum + amber palette
 */

/* Base resets and typography */
html {
    scroll-padding-top: 80px;
}

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

/* Selection color */
::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #f5f0ff;
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #c9a84c;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Custom select styling */
select option {
    background: #0d0b12;
    color: #f5f0ff;
    padding: 8px;
}

/* Prevent content flash on scroll */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure content is visible without JS */
@media not all and (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
    }
}

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

#menuBtn.active .menu-line:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
    width: 1.25rem;
}

/* Print styles */
@media print {
    nav, .mobile-menu, #menuBtn, .btn-shine::before {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
    .font-display, h1, h2, h3, h4 {
        color: black !important;
        -webkit-text-fill-color: black !important;
    }
}
