/* ═══════════════════════════════════════════════════════════════════════
   Project X Cologne — Public Style Guide
   Brand:  Red #d3372a · Charcoal #1d1d1d · Porcelain #f1f1f1
   Family: Poppins (400, 500, 600, 700, 800)
   ═══════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    --brand-red: #d3372a;
    --brand-red-deep: #b6291e;
    --brand-red-soft: rgba(211, 55, 42, 0.12);
    --brand-charcoal: #1d1d1d;
    --brand-charcoal-soft: #2a2a2a;
    --brand-porcelain: #f1f1f1;
    --brand-porcelain-warm: #fafafa;

    --primary-color: var(--brand-red);
    --secondary-color: var(--brand-charcoal);
    --accent-color: var(--brand-red);
    --light-color: var(--brand-porcelain);
    --dark-color: var(--brand-charcoal);
    --text-color: #2a2a2a;
    --light-text: #ffffff;
    --gray-color: #d4d4d8;
    --dark-gray: #6b6b6b;
    --muted-text: #8a8a8a;

    --bg-page: var(--brand-porcelain);
    --bg-elevated: #ffffff;
    --border-subtle: rgba(0, 0, 0, 0.08);
    --border-default: rgba(0, 0, 0, 0.14);

    --glass-light: rgba(255, 255, 255, 0.08);
    --glass-medium: rgba(255, 255, 255, 0.14);
    --glass-strong: rgba(255, 255, 255, 0.22);
    --glass-border: rgba(255, 255, 255, 0.28);
    --glass-blur: 18px;

    --header-height: 72px;
    --container-width: 1280px;
    --container-padding: 1.5rem;

    --radius-sm: 4px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 999px;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 32px 64px rgba(0, 0, 0, 0.22);

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    --z-back: -1;
    --z-base: 1;
    --z-elevated: 10;
    --z-overlay: 100;
    --z-fixed: 500;
    --z-modal: 1000;
    --z-toast: 9999;
}

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

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-page);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--brand-charcoal);
    margin-bottom: 0.5rem;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; font-weight: 600; }

p { margin-bottom: 1rem; color: var(--text-color); }

a { color: var(--brand-red); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--brand-red-deep); }

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

.x-accent {
    color: var(--brand-red);
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    letter-spacing: -0.03em;
}

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

.section { padding: 5rem 0; }
.section-tight { padding: 3rem 0; }

/* ── Buttons ───────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1;
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #ffffff;
    transition: var(--transition);
    will-change: transform, background;
    user-select: none;
}
.btn:hover { background: rgba(255, 255, 255, 0.18); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--brand-red); outline-offset: 3px; }
.btn[aria-disabled="true"], .btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

.btn-primary { background: var(--brand-red); border-color: var(--brand-red); color: #ffffff; }
.btn-primary:hover { background: var(--brand-red-deep); border-color: var(--brand-red-deep); }

.btn-on-light {
    border-color: rgba(0, 0, 0, 0.18);
    background: rgba(255, 255, 255, 0.65);
    color: var(--brand-charcoal);
    backdrop-filter: blur(8px);
}
.btn-on-light:hover { background: rgba(0, 0, 0, 0.06); color: var(--brand-charcoal); }

.btn-ghost { border-color: transparent; background: transparent; color: var(--brand-charcoal); }
.btn-ghost:hover { background: rgba(0, 0, 0, 0.05); }

.btn-lg { padding: 1.05rem 2.5rem; font-size: 1.05rem; }
.btn-sm { padding: 0.55rem 1.15rem; font-size: 0.85rem; }

/* ── Glass surfaces ─────────────────────────────────────────────────── */

.glass {
    background: var(--glass-medium);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}
.glass-dark {
    background: rgba(29, 29, 29, 0.7);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
}

/* ── Forms ─────────────────────────────────────────────────────────── */

.field { margin-bottom: 1rem; }
.field-label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--brand-charcoal);
    margin-bottom: 0.4rem;
    letter-spacing: 0.01em;
}
.field-input, .field-select, .field-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--brand-charcoal);
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    -webkit-appearance: none;
    appearance: none;
}
.field-input:focus, .field-select:focus, .field-textarea:focus {
    outline: none;
    border-color: var(--brand-red);
    box-shadow: 0 0 0 3px var(--brand-red-soft);
}
.field-input::placeholder, .field-textarea::placeholder { color: var(--muted-text); }
.field-textarea { min-height: 120px; resize: vertical; }
.field-error { color: var(--brand-red-deep); font-size: 0.85rem; margin-top: 0.4rem; }

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.5;
}
.checkbox-row input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--brand-red);
    cursor: pointer;
}
.checkbox-row label { cursor: pointer; user-select: none; }

/* ── Search input — minimal hairline ───────────────────────────────── */

.search-flat {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-default);
    padding: 0.5rem 0.25rem;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--brand-charcoal);
    width: 100%;
    transition: border-color var(--transition-fast);
}
.search-flat:focus { outline: none; border-bottom-color: var(--brand-red); }
.search-flat::placeholder { color: var(--muted-text); }

/* ── Dropdown — translucent, animated ──────────────────────────────── */

.dropdown-anchor { position: relative; }
.dropdown-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 200px;
    background: rgba(29, 29, 29, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    opacity: 0;
    transform: translateY(-4px);
    visibility: hidden;
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    z-index: var(--z-overlay);
}
.dropdown-anchor.open .dropdown-panel,
.dropdown-anchor:hover .dropdown-panel {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}
.dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    text-decoration: none;
    transition: background var(--transition-fast), color var(--transition-fast);
}
.dropdown-item:hover { background: rgba(211, 55, 42, 0.18); color: #ffffff; }

/* ── Icons (hairline SVG) ──────────────────────────────────────────── */

.icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
    flex-shrink: 0;
}
.icon-lg { width: 22px; height: 22px; }
.icon-sm { width: 14px; height: 14px; }

/* ── Utilities (lean) ──────────────────────────────────────────────── */

.text-center { text-align: center; }
.text-muted { color: var(--muted-text); }
.text-light { color: #ffffff; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }

.empty-state { padding: 3rem 1rem; text-align: center; }
.empty-state h3 { color: var(--brand-charcoal); }
.empty-state p { color: var(--muted-text); }

@media (max-width: 768px) {
    .section { padding: 3rem 0; }
    .container { padding: 0 1rem; }
}