/* Custom styles for Playhouse Beauty Bar */

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

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

/* Custom font imports */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* Custom properties */
:root {
    --emerald-700: #15803d;
    --emerald-800: #166534;
    --cream-50: #fefdf8;
    --cream-100: #fefce8;
    --transition-base: all 0.3s ease;
}

/* Body */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--cream-50);
    color: #1a1a1a;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Thin line accent */
.line-accent {
    width: 60px;
    height: 1px;
    background-color: var(--emerald-700);
    transition: width 0.3s ease;
}

.line-accent:hover {
    width: 80px;
}

/* Primary button */
.btn-primary {
    background-color: var(--emerald-700);
    color: #fefdf8;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background-color: var(--emerald-800);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(21, 128, 61, 0.25);
}

/* Secondary button */
.btn-secondary {
    background-color: transparent;
    color: var(--emerald-700);
    border: 1px solid var(--emerald-700);
    transition: var(--transition-base);
}

.btn-secondary:hover {
    background-color: var(--emerald-700);
    color: #fefdf8;
    transform: translateY(-2px);
}

/* Hero image container */
.hero-image {
    position: relative;
    overflow: hidden;
}

.hero-image img {
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-image:hover img {
    transform: scale(1.02);
}

/* Mobile menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Product card hover effect */
.product-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Navigation scroll effect */
.nav-scrolled {
    background-color: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(21, 128, 61, 0.1);
}

/* Aspect ratio utilities */
.aspect-square {
    aspect-ratio: 1 / 1;
}

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

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

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

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

/* Mobile menu button animation */
#mobile-menu-btn span {
    transition: all 0.3s ease;
}

#mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 24px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .hero-image img,
    .product-card {
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Print styles */
@media print {
    .mobile-menu,
    .scroll-reveal {
        display: block !important;
        opacity: 1 !important;
    }
    
    .btn-primary,
    .btn-secondary {
        background-color: var(--emerald-700) !important;
        color: #fefdf8 !important;
    }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--emerald-700);
    outline-offset: 2px;
}

/* Form input focus styles */
input:focus,
textarea:focus,
select:focus {
    border-color: var(--emerald-700) !important;
}

/* Loading state for buttons */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Image lazy loading placeholder */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}
