/* Custom Styles for Samantha King Hair Stylist */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf8f5;
}
::-webkit-scrollbar-thumb {
    background: #8a425a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #713749;
}

/* Navbar transitions */
.nav-logo-text {
    transition: color 0.3s ease;
}
.nav-logo-sub {
    transition: color 0.3s ease;
}

/* Hero animations */
.hero-tagline {
    animation: slideUp 0.8s ease forwards;
}
.hero-title {
    animation: slideUp 0.8s ease 0.2s forwards;
    opacity: 0;
}
.hero-subtitle {
    animation: slideUp 0.8s ease 0.4s forwards;
    opacity: 0;
}
.hero-btn {
    animation: slideUp 0.8s ease 0.5s forwards;
    opacity: 0;
}
.hero-btn-alt {
    animation: slideUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service card hover effects */
.service-card {
    transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
}
.service-card:hover {
    transform: translateY(-8px);
}

/* Gallery hover */
.gallery-item {
    overflow: hidden;
}
.gallery-item img {
    transition: transform 0.7s ease;
}

/* Testimonial card */
.testimonial-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(138, 66, 90, 0.12);
}

/* Reveal animations (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
}

/* Mobile menu transitions */
#mobileMenu {
    transition: opacity 0.5s ease, pointer-events 0.5s ease;
}
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}
#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Mobile nav links */
.mobile-nav-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}
.mobile-nav-link:hover {
    transform: translateY(0);
}

/* Menu animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}
#menuBtn.active .menu-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menuBtn.active .menu-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    width: 1.5rem;
}

/* Contact form focus states */
input:focus,
textarea:focus,
select:focus {
    border-bottom-color: #fbbf24 !important;
}

/* Select styling */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a425a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 2rem;
}

/* Reduced motion */
@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;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.75rem !important;
    }
    .hero-title span {
        font-size: 2.25rem !important;
    }
}
