/* Princess Palace Hair Salon - Custom Styles */

/* Custom properties */
:root {
    --color-emerald-50: #f0fdf4;
    --color-emerald-100: #dcfce7;
    --color-emerald-200: #bbf7d0;
    --color-emerald-300: #86efac;
    --color-emerald-400: #4ade80;
    --color-emerald-500: #22c55e;
    --color-emerald-600: #16a34a;
    --color-emerald-700: #15803d;
    --color-emerald-800: #166534;
    --color-emerald-900: #14532d;
    --color-emerald-950: #052e16;
    
    --color-cream-50: #faf6ef;
    --color-cream-100: #fef9ec;
    --color-cream-200: #fdf3d9;
    --color-cream-300: #fce8b4;
    --color-cream-400: #fad980;
    --color-cream-500: #f7c948;
    --color-cream-600: #e0a824;
    --color-cream-700: #b87f14;
    --color-cream-800: #8a5e0f;
    --color-cream-900: #5c3d0a;
    --color-cream-950: #3a2507;
    
    --color-palace-emerald: #1a5f3c;
    --color-palace-emerald-light: #2d8a5e;
    --color-palace-emerald-dark: #0f3d25;
    --color-palace-cream: #faf6ef;
    --color-palace-cream-dark: #f0e8d8;
    --color-palace-gold: #c9a84c;
    --color-palace-gold-light: #d4b96a;
    --color-palace-gold-dark: #a07e2e;
    --color-palace-charcoal: #2c2c2c;
    --color-palace-charcoal-light: #4a4a4a;
    
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Lato', Helvetica Neue, Arial, sans-serif;
}

/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-cream-50);
    color: var(--color-palace-charcoal);
    line-height: 1.6;
}

/* Typography */
.font-playfair {
    font-family: var(--font-serif);
}

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

::-webkit-scrollbar-track {
    background: var(--color-cream-50);
}

::-webkit-scrollbar-thumb {
    background: var(--color-emerald-700);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-emerald-900);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

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

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

/* Decorative elements */
.ornament {
    position: relative;
}

.ornament::before,
.ornament::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-palace-gold), transparent);
    top: 50%;
}

.ornament::before {
    left: -80px;
}

.ornament::after {
    right: -80px;
}

/* Image hover effects */
.image-hover {
    transition: transform 0.5s ease;
}

.image-hover:hover {
    transform: scale(1.05);
}

/* Button styles */
.btn-primary {
    background: linear-gradient(135deg, var(--color-palace-emerald) 0%, var(--color-palace-emerald-light) 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-palace-emerald-dark) 0%, var(--color-palace-emerald) 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(26, 95, 60, 0.3);
}

.btn-secondary {
    border: 2px solid var(--color-palace-gold);
    color: var(--color-palace-emerald);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--color-palace-gold);
    color: var(--color-cream-50);
}

/* Service card hover */
.service-card {
    transition: all 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(26, 95, 60, 0.15);
}

.service-card:hover .service-icon {
    transform: rotateY(360deg);
}

.service-icon {
    transition: transform 0.6s ease;
}

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(250, 246, 239, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Form styles */
.form-input {
    border: 2px solid var(--color-cream-300);
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--color-emerald-700);
    box-shadow: 0 0 0 3px rgba(26, 95, 60, 0.1);
}

/* Testimonial cards */
.testimonial-card {
    background: linear-gradient(145deg, #ffffff 0%, var(--color-cream-50) 100%);
}

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

.gallery-item img {
    transition: transform 0.6s ease;
}

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

/* Footer */
.footer-link {
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-palace-gold);
    transition: width 0.3s ease;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .ornament::before,
    .ornament::after {
        display: none;
    }
}

/* 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;
    }
    
    .fade-in,
    .slide-in-left,
    .slide-in-right {
        opacity: 1;
        transform: none;
    }
}
