/* Custom Styles for Salon Olivia */

:root {
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --color-forest-50: #f2f7f4;
    --color-forest-100: #e3efe7;
    --color-forest-500: #4d7d58;
    --color-forest-600: #3d6345;
    --color-forest-700: #315038;
    --color-forest-800: #28412e;
    --color-forest-900: #213626;
    --color-forest-950: #111c13;
    --color-off-white: #f8f7f4;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    color: var(--color-forest-900);
    background-color: var(--color-off-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.font-playfair {
    font-family: var(--font-display);
}

.font-inter {
    font-family: var(--font-body);
}

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

::-webkit-scrollbar-track {
    background: var(--color-off-white);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--color-forest-500);
}

/* Section Styles */
.section-label {
    letter-spacing: 0.3em;
}

.section-title {
    letter-spacing: -0.02em;
}

.section-desc {
    letter-spacing: 0.01em;
}

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

.nav-subtext {
    transition: color 0.3s ease;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--color-forest-500);
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: var(--color-forest-500) !important;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(248, 247, 244, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(49, 80, 56, 0.1);
}

.navbar-scrolled .nav-text {
    color: var(--color-forest-900);
}

.navbar-scrolled .nav-subtext {
    color: var(--color-forest-600);
}

.navbar-scrolled .menu-line {
    background: var(--color-forest-800);
}

/* Hero Animations */
.hero-badge {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-title {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

.hero-subtitle {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

.hero-cta {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

.hero-stats {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1s;
}

.hero-stat {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-stat:nth-child(1) { animation-delay: 1s; }
.hero-stat:nth-child(2) { animation-delay: 1.1s; }
.hero-stat:nth-child(3) { animation-delay: 1.2s; }

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

/* Service Cards */
.service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17, 28, 19, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Testimonial Cards */
.testimonial-card {
    transition: transform 0.4s ease, background 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

/* Contact Form */
input:focus,
select:focus,
textarea:focus {
    border-color: var(--color-forest-500);
    outline: none;
    box-shadow: 0 0 0 4px rgba(77, 125, 88, 0.1);
}

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

.mobile-menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.25s; }

/* Menu Toggle Animation */
.menu-toggle-active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle-active .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle-active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Back to Top */
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    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; }

/* Responsive Adjustments */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-title .italic {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .service-card {
        transform: none !important;
    }
    
    .service-card:hover {
        transform: none !important;
    }
    
    .testimonial-card {
        transform: none !important;
    }
    
    .testimonial-card:hover {
        transform: none !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .service-card:hover {
        transform: translateY(-4px);
    }
}

/* Print Styles */
@media print {
    nav, #back-to-top, .hero-stats {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .service-card, .testimonial-card {
        break-inside: avoid;
    }
}
