/* ═══════════════════════════════════════════════════════════════
   THE CURATED WARDROBE — Design System
   Typography: Cormorant Garamond (display) + IBM Plex Sans (body)
   Colors: Deep charcoal with warm gold accents
   Motion: Fibonacci timing (233ms, 377ms, 610ms)
   ═══════════════════════════════════════════════════════════════ */

:root {
    /* Color Palette - Warm Luxury */
    --bg-primary: #0a0908;
    --bg-secondary: #12110f;
    --bg-card: #1a1815;
    --bg-card-hover: #211e1a;
    
    --text-primary: #f5f3ef;
    --text-secondary: #a8a29e;
    --text-muted: #6b6560;
    
    --accent-gold: #c9a962;
    --accent-gold-light: #dfc78a;
    --accent-gold-dark: #9a7d3e;
    
    --border-subtle: rgba(201, 169, 98, 0.12);
    --border-medium: rgba(201, 169, 98, 0.25);
    
    /* Typography Scale */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'IBM Plex Sans', -apple-system, sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
    
    --fs-hero: clamp(3rem, 8vw, 6rem);
    --fs-h1: clamp(2rem, 5vw, 3.5rem);
    --fs-h2: clamp(1.75rem, 4vw, 2.5rem);
    --fs-h3: clamp(1.125rem, 2vw, 1.5rem);
    --fs-body: 1rem;
    --fs-small: 0.875rem;
    --fs-eyebrow: 0.75rem;
    
    /* Spacing - 8px grid */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;
    --space-3xl: 8rem;
    
    /* Motion - Fibonacci */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --duration-fast: 233ms;
    --duration-medium: 377ms;
    --duration-slow: 610ms;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(201, 169, 98, 0.15);
}

/* ═══════════════════════════════════════════════════════════════
   Base & Reset
   ═══════════════════════════════════════════════════════════════ */

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

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

body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
}

/* Breathing Background */
.breathing-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: 
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(201, 169, 98, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(201, 169, 98, 0.05) 0%, transparent 50%),
        var(--bg-primary);
    animation: breathe 8s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ═══════════════════════════════════════════════════════════════
   Typography
   ═══════════════════════════════════════════════════════════════ */

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
    color: var(--accent-gold-light);
}

/* ═══════════════════════════════════════════════════════════════
   Navigation
   ═══════════════════════════════════════════════════════════════ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-xl);
    background: linear-gradient(to bottom, var(--bg-primary) 0%, transparent 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
}

.nav-links a {
    font-size: var(--fs-small);
    font-weight: 400;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-gold);
    transition: width var(--duration-medium) var(--ease-out);
}

.nav-links a:hover {
    color: var(--text-primary);
}

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

/* ═══════════════════════════════════════════════════════════════
   Hero Section
   ═══════════════════════════════════════════════════════════════ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3xl) var(--space-xl);
    text-align: center;
}

.hero-content {
    max-width: 800px;
}

.hero-eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: var(--fs-eyebrow);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--accent-gold);
    margin-bottom: var(--space-md);
    animation: fadeInUp var(--duration-slow) var(--ease-out) 0.2s both;
}

.hero-title {
    font-size: var(--fs-hero);
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    animation: fadeInUp var(--duration-slow) var(--ease-out) 0.4s both;
}

.hero-subtitle {
    font-size: var(--fs-h3);
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    animation: fadeInUp var(--duration-slow) var(--ease-out) 0.6s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    animation: fadeInUp var(--duration-slow) var(--ease-out) 0.8s both;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.stat-value {
    font-family: var(--font-display);
    font-size: var(--fs-h2);
    font-weight: 400;
    color: var(--accent-gold);
}

.stat-label {
    font-size: var(--fs-small);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

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

/* ═══════════════════════════════════════════════════════════════
   Philosophy Section
   ═══════════════════════════════════════════════════════════════ */

.philosophy {
    padding: var(--space-3xl) var(--space-xl);
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.philosophy-content {
    max-width: 1200px;
    margin: 0 auto;
}

.philosophy h2 {
    font-size: var(--fs-h2);
    text-align: center;
    margin-bottom: var(--space-2xl);
    color: var(--accent-gold);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
}

.philosophy-item {
    padding: var(--space-lg);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    transition: all var(--duration-medium) var(--ease-out);
}

.philosophy-item:hover {
    border-color: var(--border-medium);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.philosophy-number {
    display: block;
    font-family: var(--font-mono);
    font-size: var(--fs-eyebrow);
    color: var(--accent-gold);
    margin-bottom: var(--space-sm);
}

.philosophy-item h3 {
    font-size: var(--fs-h3);
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.philosophy-item p {
    color: var(--text-secondary);
    font-size: var(--fs-small);
}

/* ═══════════════════════════════════════════════════════════════
   Collection Sections
   ═══════════════════════════════════════════════════════════════ */

.collection {
    padding: var(--space-3xl) var(--space-xl);
}

.collection-dark {
    background: var(--bg-secondary);
}

.collection-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.collection-eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: var(--fs-eyebrow);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--accent-gold);
    margin-bottom: var(--space-sm);
}

.collection-title {
    font-size: var(--fs-h1);
    margin-bottom: var(--space-sm);
}

.collection-subtitle {
    font-size: var(--fs-body);
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════════
   Product Grid & Cards
   ═══════════════════════════════════════════════════════════════ */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
    transition: all var(--duration-medium) var(--ease-out);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-medium);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

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

.product-image-container {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: var(--bg-secondary);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
}

.product-badge {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
    background: var(--bg-primary);
    border: 1px solid var(--border-medium);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-gold);
}

.product-info {
    padding: var(--space-md);
}

.product-brand {
    font-family: var(--font-mono);
    font-size: var(--fs-eyebrow);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-gold);
    margin-bottom: var(--space-xs);
}

.product-name {
    font-family: var(--font-display);
    font-size: var(--fs-h3);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-details {
    font-size: var(--fs-small);
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border-subtle);
}

.product-price {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
}

.product-link {
    font-size: var(--fs-small);
    font-weight: 500;
    color: var(--accent-gold);
    transition: all var(--duration-fast) var(--ease-out);
}

.product-link:hover {
    color: var(--accent-gold-light);
    transform: translateX(4px);
}

/* ═══════════════════════════════════════════════════════════════
   Outfit Builder Section
   ═══════════════════════════════════════════════════════════════ */

.outfits-section {
    padding: var(--space-3xl) var(--space-xl);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.outfit-builder {
    max-width: 1200px;
    margin: 0 auto;
}

.outfit-presets {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
}

.outfit-preset {
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--duration-medium) var(--ease-out);
    text-align: left;
}

.outfit-preset:hover {
    border-color: var(--border-medium);
    transform: translateY(-2px);
}

.outfit-preset.active {
    border-color: var(--accent-gold);
    background: rgba(201, 169, 98, 0.1);
    box-shadow: var(--shadow-glow);
}

.preset-name {
    display: block;
    font-family: var(--font-display);
    font-size: var(--fs-h3);
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.preset-desc {
    font-size: var(--fs-small);
    color: var(--text-muted);
}

.outfit-display {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: var(--space-xl);
}

.outfit-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.outfit-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm);
    background: var(--bg-secondary);
    border-radius: 8px;
    transition: all var(--duration-fast) var(--ease-out);
}

.outfit-item:hover {
    background: var(--bg-card-hover);
}

.outfit-item-image {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
}

.outfit-item-info {
    flex: 1;
    min-width: 0;
}

.outfit-item-name {
    font-size: var(--fs-small);
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.outfit-item-price {
    font-size: var(--fs-small);
    color: var(--accent-gold);
}

.outfit-summary {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-subtle);
}

.outfit-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-display);
    font-size: var(--fs-h3);
}

.outfit-total span:first-child {
    color: var(--text-secondary);
}

.outfit-total span:last-child {
    color: var(--accent-gold);
    font-size: var(--fs-h2);
}

/* ═══════════════════════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════════════════════ */

.footer {
    padding: var(--space-3xl) var(--space-xl);
    text-align: center;
    border-top: 1px solid var(--border-subtle);
}

.footer-quote {
    font-family: var(--font-display);
    font-size: var(--fs-h3);
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.footer-credit {
    font-size: var(--fs-small);
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   Responsive Design
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .philosophy-grid {
        grid-template-columns: 1fr;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .outfit-presets {
        flex-direction: column;
    }
    
    .outfit-preset {
        width: 100%;
    }
}

/* ═══════════════════════════════════════════════════════════════
   Micro-interactions & Polish
   ═══════════════════════════════════════════════════════════════ */

/* Selection styling */
::selection {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

/* Focus states */
:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 4px;
}

/* Scroll reveal animation base */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--duration-slow) var(--ease-out);
}

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