/* ═══════════════════════════════════════════════════
   RS Political Strategies — Design System v2
   Direction B: Dark Refined
   ═══════════════════════════════════════════════════ */

/* ── Tokens ── */
:root {
    --bg: #111111;
    --bg-card: #1A1A1A;
    --bg-elevated: #222222;
    --text: #E8E8E8;
    --text-secondary: #8A8A8A;
    --accent: #C43B3B;
    --accent-hover: #D94F4F;
    --accent-dim: rgba(196,59,59,0.12);
    --border: #2A2A2A;
    --border-hover: #3A3A3A;
    --radius: 0px;
    --max-w: 1100px;
    --max-w-wide: 1200px;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

/* ── Typography ── */
.font-serif { font-family: 'Instrument Serif', Georgia, serif; }
.font-mono { font-family: 'Geist Mono', 'SF Mono', 'Consolas', monospace; }

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.01em; }

/* ── Navigation ── */
.site-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(17,17,17,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
}
.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}
.nav-logo {
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}
.nav-logo span { color: var(--accent); font-weight: 400; }
.nav-links {
    display: flex;
    gap: 2rem;
}
.nav-links a {
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

/* Dropdown nav */
.nav-dropdown { position: relative; }
.dropdown-trigger { cursor: pointer; }
.dropdown-arrow { font-size: 0.7em; margin-left: 2px; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.5rem 0;
    min-width: 180px;
    z-index: 200;
    list-style: none;
    margin-top: 0.5rem;
}
.dropdown-menu li { list-style: none; }
.dropdown-menu a {
    display: block;
    padding: 0.5rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}
.dropdown-menu a:hover {
    color: var(--text);
    background: var(--bg-elevated);
}
.nav-dropdown:hover .dropdown-menu { display: block; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span {
    display: block; width: 20px; height: 2px;
    background: var(--text); margin: 4px 0;
    transition: all 0.3s;
}

/* ── Layout ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.container-wide { max-width: var(--max-w-wide); margin: 0 auto; padding: 0 2rem; }
.section { padding: 5rem 0; }
.section-bordered { border-top: 1px solid var(--border); }

/* ── Eyebrow Label ── */
.eyebrow {
    font-family: 'Geist Mono', monospace;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.eyebrow::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--accent);
}
.eyebrow--plain::before { display: none; }

/* ── Buttons ── */
.btn {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.7rem 1.75rem;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline {
    border: 1px solid var(--border);
    color: var(--text-secondary);
    background: transparent;
}
.btn-outline:hover {
    border-color: var(--text-secondary);
    color: var(--text);
}
.btn-text {
    color: var(--text-secondary);
    padding: 0;
    background: none;
}
.btn-text:hover { color: var(--text); }
.btn-text::after { content: ' \2192'; }

/* ── Cards ── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2rem;
    transition: border-color 0.3s;
}
.card:hover { border-color: var(--border-hover); }

/* ── Section Headers ── */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.section-header h2 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}
.section-header .tag {
    font-family: 'Geist Mono', monospace;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
}

/* ── Grid Layouts ── */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border);
}
.grid-2 > * { background: var(--bg-card); }

.sidebar-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
}
.sidebar-label {
    font-family: 'Geist Mono', monospace;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
}

/* ── Footer ── */
.site-footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border);
}
.site-footer a { color: var(--text-secondary); transition: color 0.2s; }
.site-footer a:hover { color: var(--text); }

/* ── Form Elements ── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: var(--text);
}
.form-label .optional {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 0.75rem;
}
.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.7rem 1rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    color: var(--text);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    transition: border-color 0.2s;
    outline: none;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--accent);
}
.form-textarea { resize: vertical; min-height: 120px; }

/* ── Utility ── */
.text-secondary { color: var(--text-secondary); }
.text-accent { color: var(--accent); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .site-nav { padding: 0 1.25rem; }
    .container, .container-wide { padding: 0 1.25rem; }
    .section { padding: 3.5rem 0; }

    .nav-links {
        display: none;
        position: absolute;
        top: 56px; left: 0; right: 0;
        background: rgba(17,17,17,0.98);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 1rem 2rem;
        gap: 1rem;
    }
    .nav-links.open { display: flex; }
    .nav-toggle { display: block; }

    /* Mobile dropdown */
    .nav-dropdown { position: static; }
    .dropdown-menu {
        position: static;
        transform: none;
        background: transparent;
        border: none;
        padding: 0 0 0 1rem;
        min-width: auto;
        margin-top: 0;
    }
    .nav-dropdown:hover .dropdown-menu { display: none; }
    .nav-dropdown.open .dropdown-menu { display: block; }

    .sidebar-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .grid-2 { grid-template-columns: 1fr; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}
