/* Custom styles for Monarch Beauty Studio */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Base font adjustments */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Playfair Display italic styling */
.font-serif em,
.font-serif i {
    font-style: italic;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf9ed;
}
::-webkit-scrollbar-thumb {
    background: #719956;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4f7a35;
}

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

/* Nav transition states */
nav.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(45, 72, 31, 0.08);
}

nav.scrolled .font-serif {
    color: #2d481f;
}

/* Mobile menu transitions */
#mobile-menu {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.open {
    transform: translateX(0);
}

/* Reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

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

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* Button hover lift */
button:hover,
a:hover {
    cursor: pointer;
}

/* Service card hover shadow */
.group:hover {
    box-shadow: inset 0 0 0 1px rgba(113, 153, 86, 0.15);
}

/* Gallery image hover */
.aspect-square overflow-hidden {
    position: relative;
}

.aspect-square img {
    will-change: transform;
}

/* Hero image subtle float */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* About section quote card */
.bg-forest-700 {
    backdrop-filter: none;
}

/* Mobile menu overlay when open */
body.menu-open {
    overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif.text-5xl {
        font-size: 2.5rem;
    }
}

@media (max-width: 640px) {
    #hero h1 {
        font-size: 2.75rem;
        line-height: 1.0;
    }
}
