/* ============================================
   SANDROS BARBER LOUNGE — Design System
   Black & White Minimal / Paul Mitchell Inspired
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    /* ── Color Palette — Black & White Minimal ── */
    --color-black: #000000;
    --color-black-soft: #0A0A0A;
    --color-charcoal: #1A1A1A;
    --color-graphite: #2A2A2A;
    --color-slate: #3A3A3A;
    --color-steel: #555555;
    --color-ash: #777777;
    --color-silver: #999999;
    --color-mist: #BBBBBB;
    --color-cloud: #D5D5D5;
    --color-pearl: #E8E8E8;
    --color-snow: #F2F2F2;
    --color-offwhite: #F8F8F8;
    --color-white: #FFFFFF;

    /* Accent — Pure Black (used sparingly for emphasis) */
    --color-accent: #000000;
    --color-accent-soft: #1A1A1A;
    --color-accent-hover: #333333;

    /* Semantic */
    --color-success: #2ECC71;
    --color-warning: #F39C12;
    --color-danger: #E74C3C;
    --color-info: #3498DB;

    /* ── Light Theme (Primary brand — white/minimal) ── */
    --surface-primary: var(--color-white);
    --surface-secondary: var(--color-offwhite);
    --surface-elevated: var(--color-snow);
    --surface-card: var(--color-white);
    --surface-card-hover: var(--color-offwhite);
    --surface-overlay: rgba(0, 0, 0, 0.5);

    --text-primary: var(--color-black);
    --text-secondary: var(--color-steel);
    --text-tertiary: var(--color-ash);
    --text-muted: var(--color-silver);
    --text-inverse: var(--color-white);

    --border-color: var(--color-pearl);
    --border-light: var(--color-snow);
    --border-strong: var(--color-cloud);

    /* ── Typography ── */
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Font Sizes - Fluid */
    --text-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.8rem);
    --text-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.9rem);
    --text-base: clamp(0.9rem, 0.85rem + 0.3vw, 1rem);
    --text-md: clamp(1rem, 0.9rem + 0.4vw, 1.15rem);
    --text-lg: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
    --text-xl: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem);
    --text-2xl: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem);
    --text-3xl: clamp(2rem, 1.5rem + 2vw, 3rem);
    --text-4xl: clamp(2.5rem, 1.8rem + 3vw, 4rem);
    --text-5xl: clamp(3rem, 2rem + 4vw, 5.5rem);
    --text-6xl: clamp(3.5rem, 2.2rem + 5vw, 7rem);
    --text-hero: clamp(3.5rem, 2rem + 6vw, 8.5rem);

    /* Font Weights */
    --weight-light: 300;
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;
    --weight-extrabold: 800;

    /* Line Heights */
    --leading-tight: 1.05;
    --leading-snug: 1.2;
    --leading-normal: 1.5;
    --leading-relaxed: 1.7;
    --leading-loose: 2;

    /* Letter Spacing */
    --tracking-tight: -0.03em;
    --tracking-normal: 0;
    --tracking-wide: 0.06em;
    --tracking-wider: 0.12em;
    --tracking-widest: 0.2em;
    --tracking-ultra: 0.35em;

    /* ── Spacing ── */
    --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;
    --space-40: 10rem;
    --space-section: clamp(5rem, 4rem + 5vw, 10rem);

    /* ── Layout ── */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1200px;
    --container-2xl: 1400px;
    --container-full: 1600px;

    /* ── Borders ── */
    --border-thin: 1px solid var(--border-light);
    --border-subtle: 1px solid var(--border-color);
    --border-medium: 1px solid var(--border-strong);
    --border-black: 1px solid var(--color-black);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-2xl: 28px;
    --radius-full: 9999px;

    /* ── Shadows — Soft, minimal ── */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 16px 40px rgba(0, 0, 0, 0.12);

    /* ── Transitions ── */
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-in-out: cubic-bezier(0.42, 0, 0.58, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
    --duration-fast: 200ms;
    --duration-normal: 350ms;
    --duration-slow: 500ms;
    --duration-slower: 700ms;
    --duration-cinematic: 1200ms;

    /* ── Z-Index ── */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-overlay: 300;
    --z-modal: 400;
    --z-toast: 500;
    --z-nav: 600;
    --z-max: 999;
}

/* ============================================
   Reset & Base
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-weight: var(--weight-regular);
    line-height: var(--leading-normal);
    color: var(--text-primary);
    background-color: var(--surface-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--duration-normal) var(--ease-out);
}

button {
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

input,
textarea,
select {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--text-primary);
    background: transparent;
    border: none;
    outline: none;
}

::selection {
    background: var(--color-black);
    color: var(--color-white);
}

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

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

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

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

/* ============================================
   Utility Classes
   ============================================ */

.container {
    width: 100%;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container-lg {
    max-width: var(--container-2xl);
}

.container-full {
    max-width: var(--container-full);
}

.section {
    padding: var(--space-section) 0;
    position: relative;
}

/* Display Typography */
.display-hero {
    font-family: var(--font-display);
    font-size: var(--text-hero);
    font-weight: var(--weight-bold);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    color: var(--text-primary);
}

.display-xl {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: var(--weight-bold);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
}

.display-lg {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: var(--weight-bold);
    line-height: var(--leading-snug);
}

.display-md {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: var(--weight-semibold);
    line-height: var(--leading-snug);
}

.heading-lg {
    font-family: var(--font-body);
    font-size: var(--text-2xl);
    font-weight: var(--weight-semibold);
    line-height: var(--leading-snug);
}

.heading-md {
    font-family: var(--font-body);
    font-size: var(--text-xl);
    font-weight: var(--weight-semibold);
    line-height: var(--leading-snug);
}

.label-lg {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.label-sm {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--text-muted);
}

.body-lg {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    color: var(--text-secondary);
}

.body-md {
    font-size: var(--text-md);
    line-height: var(--leading-relaxed);
    color: var(--text-secondary);
}

.body-sm {
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
    color: var(--text-tertiary);
}

/* Text utilities */
.text-black {
    color: var(--color-black);
}

.text-white {
    color: var(--color-white);
}

.text-muted {
    color: var(--text-muted);
}

.text-accent {
    color: var(--text-primary);
}

/* Italic accent for brand feel */
.accent {
    font-style: italic;
}

/* ============================================
   Button System — Black & White
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    border-radius: 0;
    transition: all var(--duration-normal) var(--ease-premium);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-black);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-charcoal);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--color-black);
}

.btn-secondary:hover {
    background: var(--color-black);
    color: var(--color-white);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    padding: var(--space-3) var(--space-4);
}

.btn-ghost:hover {
    background: var(--color-snow);
}

/* White variants (for dark backgrounds) */
.btn-white {
    background: var(--color-white);
    color: var(--color-black);
}

.btn-white:hover {
    background: var(--color-offwhite);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-white-outline {
    background: transparent;
    color: var(--color-white);
    border: 1px solid var(--color-white);
}

.btn-white-outline:hover {
    background: var(--color-white);
    color: var(--color-black);
}

.btn-lg {
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-base);
}

.btn-sm {
    padding: var(--space-2) var(--space-5);
    font-size: var(--text-xs);
}

.btn-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   Card System — Clean & Minimal
   ============================================ */

.card {
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: var(--space-8);
    transition: all var(--duration-slow) var(--ease-premium);
    position: relative;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

/* ============================================
   Dividers
   ============================================ */

.divider {
    width: 100%;
    height: 1px;
    background: var(--border-color);
    margin: var(--space-8) 0;
}

/* ============================================
   Animation Utilities
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes lineGrow {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--duration-cinematic) var(--ease-premium),
        transform var(--duration-cinematic) var(--ease-premium);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 {
    transition-delay: 100ms;
}

.stagger-2 {
    transition-delay: 200ms;
}

.stagger-3 {
    transition-delay: 300ms;
}

.stagger-4 {
    transition-delay: 400ms;
}

.stagger-5 {
    transition-delay: 500ms;
}

.stagger-6 {
    transition-delay: 600ms;
}

/* ============================================
   Responsive Utilities
   ============================================ */

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-4);
    }

    .section {
        padding: var(--space-16) 0;
    }

    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    .hide-tablet {
        display: none !important;
    }
}
