/* ═══════════════════════════════════════════════════════════════
   NOIR ATELIER — Base Styles
   Dark editorial portfolio. Warm lamplight on gallery walls.
   ═══════════════════════════════════════════════════════════════ */

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

:root {
    /* Color system — warm dark palette */
    --primary-color: #E8DFD0;
    --secondary-color: #9B8E7E;
    --accent-color: #D4A853;
    --background-color: #12110F;
    --border-color: #2C2825;
    --text-light-color: #6B6560;
    --text-dark-color: #A89E91;
    --separator-color: #3D3835;
    --hover-color: #B5AB9E;
    --placeholder-bg: #1E1B18;
    --form-bg: #1A1714;
    --important-color: #E8DFD0;
    --warning-color: #D4A853;
    --muted-color: #7A7168;

    /* Typography — elegant serif */
    --font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --base-font-size: 16px;

    /* Spacing — generous, breathable */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 40px;
    --spacing-3xl: 48px;
    --spacing-4xl: 60px;
    --spacing-5xl: 80px;
}

/* ── Selection ── */
::selection {
    background: rgba(212, 168, 83, 0.3);
    color: var(--primary-color);
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--background-color);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-light-color);
}

/* ── Body ── */
body {
    font-family: var(--font-family);
    font-size: var(--base-font-size);
    line-height: 1.7;
    color: var(--text-dark-color);
    background: var(--background-color);
    display: flex;
    min-height: 100vh;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ═══════════════════════════════════════
   SIDEBAR — The gallery entrance
   ═══════════════════════════════════════ */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 280px;
    background: var(--background-color);
    border-right: 1px solid var(--border-color);
    padding: var(--spacing-4xl) var(--spacing-2xl);
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar-header {
    margin-bottom: var(--spacing-5xl);
}

.sidebar-logo {
    font-size: calc(var(--base-font-size) * 1.5);
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--primary-color);
    text-decoration: none;
    display: block;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.sidebar-logo img {
    max-width: 200px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(0.9);
}

.sidebar-tagline {
    font-size: calc(var(--base-font-size) * 0.85);
    color: var(--text-light-color);
    font-weight: 300;
    letter-spacing: 0.06em;
    font-style: italic;
}

.sidebar-nav {
    flex: 1;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: var(--spacing-lg);
}

.sidebar-nav a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: calc(var(--base-font-size) * 0.85);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.3s ease;
    display: block;
    position: relative;
    padding-left: 0;
}

.sidebar-nav a:hover {
    color: var(--accent-color);
}

.sidebar-nav a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.sidebar-nav a.active::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 1px;
    background: var(--accent-color);
}

/* ── Sidebar Footer ── */
.sidebar-footer {
    margin-top: auto;
    padding-top: var(--spacing-2xl);
    border-top: 1px solid var(--border-color);
}

.sidebar-footer p {
    font-size: 11px;
    color: var(--text-light-color);
    line-height: 1.6;
    letter-spacing: 0.02em;
}

.sidebar-footer a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar-footer a:hover {
    color: var(--accent-color);
}

/* ═══════════════════════════════════════
   MAIN CONTENT — The gallery walls
   ═══════════════════════════════════════ */
.main-content {
    margin-left: 280px;
    flex: 1;
    padding: 60px 80px;
    max-width: 1400px;
    width: 100%;
}

/* ═══════════════════════════════════════
   TYPOGRAPHY — Warm serif hierarchy
   ═══════════════════════════════════════ */
h1 {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 0.02em;
    line-height: 1.15;
    margin-bottom: 32px;
    color: var(--primary-color);
}

h2 {
    font-size: 32px;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.25;
    margin-bottom: 24px;
    color: var(--primary-color);
}

h3 {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.35;
    margin-bottom: 16px;
    color: var(--primary-color);
}

p {
    margin-bottom: 20px;
    color: var(--text-dark-color);
    line-height: 1.8;
}

.text-large {
    font-size: 20px;
    line-height: 1.8;
    color: var(--text-dark-color);
    font-weight: 300;
}

.text-small {
    font-size: 12px;
    color: var(--text-light-color);
    letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════
   LINKS — Gold ink on dark paper
   ═══════════════════════════════════════ */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* ═══════════════════════════════════════
   LANGUAGE SWITCHER
   ═══════════════════════════════════════ */
.language-switcher {
    position: fixed;
    top: 30px;
    right: 40px;
    z-index: 101;
    display: flex;
    gap: 12px;
    font-size: 11px;
}

.language-switcher a {
    color: var(--text-light-color);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.language-switcher a:hover,
.language-switcher a.active {
    color: var(--accent-color);
}

.language-switcher .divider {
    color: var(--border-color);
}

/* ═══════════════════════════════════════
   MOBILE MENU TOGGLE
   ═══════════════════════════════════════ */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 102;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--primary-color);
    margin-bottom: 7px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* ═══════════════════════════════════════
   IMAGES — Lit from within
   ═══════════════════════════════════════ */
img {
    max-width: 100%;
    height: auto;
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: block;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 80px 30px 60px;
    }

    .language-switcher {
        right: 30px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        padding: 80px 30px 40px;
    }

    .sidebar-logo img {
        max-width: 160px;
        max-height: 50px;
    }

    .main-content {
        padding: 80px 20px 60px;
    }

    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 26px;
    }

    h3 {
        font-size: 20px;
    }
}

/* ═══════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════ */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }
.mt-6 { margin-top: 64px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }
.mb-6 { margin-bottom: 64px; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
