/* Custom styles for Hair Services website */

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

/* Custom font families */
.font-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

.font-sans {
    font-family: 'Inter', system-ui, sans-serif;
}

/* Background patterns */
.leaf-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5 C35 15, 45 20, 45 30 C45 40, 35 45, 30 55 C25 45, 15 40, 15 30 C15 20, 25 15, 30 5 Z' fill='%234f7726' fill-opacity='0.03'/%3E%3C/svg%3E");
}

/* Gradient backgrounds */
.hero-gradient {
    background: linear-gradient(135deg, #fefdf8 0%, #f6f7f4 50%, #e3ecc3 100%);
}

.section-gradient {
    background: linear-gradient(180deg, #fefdf8 0%, #f2f7f2 100%);
}

/* Floating animations for hero cards */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(1deg); }
}

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

.float-card-2 {
    animation: float-delayed 5s ease-in-out infinite;
    animation-delay: 1s;
}

.float-card-3 {
    animation: float-slow 6s ease-in-out infinite;
    animation-delay: 2s;
}

/* Service card hover effects */
.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(79, 119, 38, 0.15);
}

/* Primary button styles */
.btn-primary {
    background: linear-gradient(135deg, #4f7726 0%, #385a1c 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #385a1c 0%, #2c4716 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(79, 119, 38, 0.3);
}

/* Secondary button styles */
.btn-secondary {
    background: transparent;
    border: 2px solid #4f7726;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #4f7726;
    color: #fefdf8;
}

/* Form input styles */
.form-input {
    border: 2px solid #e3ecc3;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: #4f7726;
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 119, 38, 0.1);
}

/* Mobile menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

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

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll effect */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Image hover effects */
img {
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #fefdf8;
}

::-webkit-scrollbar-thumb {
    background: #4f7726;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #385a1c;
}

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

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

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #000;
        color: #fff;
    }
    
    .btn-secondary {
        border-color: #000;
        color: #000;
    }
}

/* Dark mode support (optional enhancement) */
@media (prefers-color-scheme: dark) {
    /* Could add dark mode styles here if needed */
}
