/* Custom styles for Stay Blessed - Beauty & Hair Salon */

/* Base resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
    color: #2c2c2c;
    background: #faf8f6;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #faf8f6;
}
::-webkit-scrollbar-thumb {
    background: #d4a0a0;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b92f2f;
}

/* Typography */
.font-serif {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

.font-sans {
    font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
}

::selection {
    background: #b92f2f;
    color: #ffffff;
}

/* Reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Button styles */
.btn-primary {
    background: #b92f2f;
    color: #ffffff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #9c2424;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(185, 47, 47, 0.25);
}

.btn-outline {
    border: 1px solid #b92f2f;
    color: #b92f2f;
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
}

.btn-outline:hover {
    background: #b92f2f;
    color: #ffffff;
    transform: translateY(-1px);
}

/* Service card hover */
.service-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(185, 47, 47, 0.08);
}

/* Gallery hover */
.gallery-item {
    overflow: hidden;
}

.gallery-item img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Form inputs */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #b92f2f;
    box-shadow: 0 0 0 2px rgba(185, 47, 47, 0.1);
}

/* Mobile menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(250, 248, 246, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(185, 47, 47, 0.08);
}

/* Mobile menu close button */
#closeMenu:hover svg {
    transform: rotate(90deg);
    transition: transform 0.3s ease;
}

#closeMenu svg {
    transition: transform 0.3s ease;
}

/* Mobile link hover */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #b92f2f;
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
}

/* Decorative elements */
.thin-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, #b92f2f, transparent);
}

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

/* Focus visible for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #b92f2f;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print styles */
@media print {
    nav, .mobile-menu, #contactForm, .btn-primary, .btn-outline {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
    .hero-gradient {
        background: white !important;
    }
}
