/**
 * LUXE SALON - Beauty & Barbershop Template
 * Premium salon/spa website stylesheet
 */

/* ==========================================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ========================================================================== */

:root {
    /* Colors - Elegant, sophisticated */
    --color-primary: #d4a574;
    --color-primary-light: #e8c4a4;
    --color-primary-dark: #b08554;
    --color-secondary: #1a1a1a;
    --color-accent: #c9a87c;
    --color-rose: #d4a5a5;
    --color-gold: #d4af37;

    /* Neutrals */
    --color-white: #ffffff;
    --color-cream: #faf8f5;
    --color-beige: #f5f0eb;
    --color-neutral-100: #f5f5f4;
    --color-neutral-200: #e7e5e4;
    --color-neutral-300: #d6d3d1;
    --color-neutral-400: #a8a29e;
    --color-neutral-500: #78716c;
    --color-neutral-600: #57534e;
    --color-neutral-700: #44403c;
    --color-neutral-800: #292524;
    --color-neutral-900: #1c1917;

    /* Dark mode colors */
    --color-dark-bg: #1c1917;
    --color-dark-surface: #292524;
    --color-dark-border: #44403c;

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-sans: 'Lato', system-ui, sans-serif;

    /* Typography Scale */
    --text-hero: clamp(2.5rem, 6vw, 4.5rem);
    --text-display: clamp(2rem, 4vw, 3rem);
    --text-h1: clamp(1.75rem, 3vw, 2.5rem);
    --text-h2: clamp(1.5rem, 2.5vw, 2rem);
    --text-h3: clamp(1.25rem, 2vw, 1.5rem);
    --text-body: 1rem;
    --text-small: 0.875rem;
    --text-xs: 0.75rem;

    /* Spacing Scale (8px base) */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-3xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(212, 165, 116, 0.2);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    --transition-spring: 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Mode */
[data-theme="dark"] {
    --color-cream: #1c1917;
    --color-beige: #292524;
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    line-height: 1.7;
    color: var(--color-neutral-700);
    background-color: var(--color-cream);
}

.dark body {
    background-color: var(--color-dark-bg);
    color: var(--color-neutral-300);
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-neutral-900);
}

.dark h1, .dark h2, .dark h3, .dark h4, .dark h5, .dark h6 {
    color: white;
}

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

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Elegant underline for headings */
.heading-underline::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--color-primary);
    margin-top: var(--space-4);
}

.heading-underline.center::after {
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.nav-blur {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: white;
    font-weight: 500;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: var(--text-small);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--color-neutral-900);
    font-weight: 500;
    padding: var(--space-3) var(--space-6);
    border: 1px solid var(--color-neutral-300);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: var(--text-small);
}

.dark .btn-secondary {
    color: white;
    border-color: var(--color-dark-border);
}

.btn-secondary:hover {
    background: var(--color-neutral-900);
    color: white;
    border-color: var(--color-neutral-900);
}

/* ==========================================================================
   CARDS
   ========================================================================== */

.service-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-spring);
    box-shadow: var(--shadow-md);
}

.dark .service-card {
    background: var(--color-dark-surface);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.team-card {
    background: white;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transition: all var(--transition-spring);
}

.dark .team-card {
    background: var(--color-dark-surface);
}

.team-card:hover {
    box-shadow: var(--shadow-xl);
}

.price-card {
    background: white;
    padding: var(--space-6);
    border-bottom: 1px solid var(--color-neutral-100);
}

.dark .price-card {
    background: var(--color-dark-surface);
    border-color: var(--color-dark-border);
}

.price-card:last-child {
    border-bottom: none;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-overlay {
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.2) 100%
    );
}

/* ==========================================================================
   GALLERY
   ========================================================================== */

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.gallery-item img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

/* ==========================================================================
   SERVICE MENU
   ========================================================================== */

.service-menu-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: var(--space-4) 0;
    border-bottom: 1px dashed var(--color-neutral-200);
}

.dark .service-menu-item {
    border-color: var(--color-dark-border);
}

.service-menu-item:last-child {
    border-bottom: none;
}

.service-dots {
    flex: 1;
    border-bottom: 1px dotted var(--color-neutral-300);
    margin: 0 var(--space-4);
    position: relative;
    top: -4px;
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ==========================================================================
   HOVER EFFECTS
   ========================================================================== */

.hover-lift {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.hover-zoom {
    overflow: hidden;
}

.hover-zoom img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-zoom:hover img {
    transform: scale(1.08);
}

/* ==========================================================================
   BOOKING FORM
   ========================================================================== */

.form-input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--color-neutral-200);
    background: white;
    font-size: var(--text-body);
    transition: all var(--transition-fast);
}

.dark .form-input {
    background: var(--color-dark-surface);
    border-color: var(--color-dark-border);
    color: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */

.testimonial-card {
    background: white;
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    position: relative;
}

.dark .testimonial-card {
    background: var(--color-dark-surface);
}

.testimonial-card::before {
    content: '"';
    font-family: var(--font-display);
    font-size: 6rem;
    color: var(--color-primary);
    opacity: 0.2;
    position: absolute;
    top: -10px;
    left: 20px;
    line-height: 1;
}

/* ==========================================================================
   INSTAGRAM FEED
   ========================================================================== */

.instagram-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.instagram-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.instagram-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 1;
}

.instagram-item:hover .instagram-icon {
    opacity: 1;
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal, .reveal-left, .reveal-right, .reveal-scale {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   SCROLLBAR
   ========================================================================== */

::-webkit-scrollbar {
    width: 8px;
}

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

.dark ::-webkit-scrollbar-track {
    background: var(--color-dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-neutral-300);
    border-radius: var(--radius-full);
}

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

/* ==========================================================================
   SELECTION
   ========================================================================== */

::selection {
    background: rgba(212, 165, 116, 0.3);
    color: var(--color-secondary);
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.section-padding {
    padding-top: var(--space-24);
    padding-bottom: var(--space-24);
}

.divider {
    width: 60px;
    height: 1px;
    background: var(--color-primary);
}

/* ==========================================================================
   CONTENT VISIBILITY (Performance)
   ========================================================================== */

section {
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}
