/* Custom styles for Bare Essentials Tanning Salon */

:root {
    --font-playfair: 'Playfair Display', serif;
    --font-lato: 'Lato', sans-serif;
}

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

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

body {
    font-family: var(--font-lato);
    overflow-x: hidden;
}

.font-playfair {
    font-family: var(--font-playfair);
}

.font-lato {
    font-family: var(--font-lato);
}

/* Scroll reveal base - content is visible by default */
.reveal {
    opacity: 1;
    transform: translateY(0);
    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);
}

/* Only apply hidden state when JS is active and animation is desired */
.reveal.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a122d;
}
::-webkit-scrollbar-thumb {
    background: #2e4f91;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3aa58c;
}

/* Selection color */
::selection {
    background: rgba(58, 165, 140, 0.3);
    color: #f0f3f9;
}

/* Image loading placeholder */
img {
    background-color: #0a122d;
}

/* Nav active state */
nav a.active {
    color: #95d7c2;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form focus states */
input:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 1px rgba(58, 165, 140, 0.3);
}

/* Smooth image hover */
img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: visible;
}
