/* Custom styles for Salem Salon */

/* Ensure smooth rendering */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background-color: #166534;
    color: #fefdf8;
}

/* Thin scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #fdf9f0;
}
::-webkit-scrollbar-thumb {
    background: #166534;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #15803d;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #166534;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.3s ease;
}

/* Ensure hero text is always readable */
.hero-text {
    color: #fefdf8;
}

/* Subtle animation for the floating card */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.floating-card {
    animation: float 4s ease-in-out infinite;
}

/* Line accent hover effect */
.line-accent {
    transition: width 0.4s ease;
}

/* Mobile menu overlay */
.mobile-menu {
    pointer-events: none;
}
.mobile-menu.open {
    pointer-events: all;
}

/* Reduce motion for accessibility */
@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;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Print styles */
@media print {
    nav, .mobile-menu, #menuBtn {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
    .hero-grid {
        grid-template-columns: 1fr !important;
        min-height: auto !important;
    }
}
