/* The Elimination Project — shared styles */
/* Design system lifted from donbarger.com family (CFO, Told, Study) */

:root {
    --ink:          #1B365D;
    --ink-deep:     #122543;
    --accent:       #487A7B;
    --accent-light: rgba(72,122,123,0.10);
    --accent-mid:   rgba(72,122,123,0.25);
    --muted:        #707372;
    --prompt:       #B2B4B2;
    --imb-red:      #B83A4B;
    --imb-teal:     #009681;
    --imb-orange:   #E87722;
    --imb-yellow:   #F3D54E;
    --bg:           #F7F8FA;
    --white:        #FFFFFF;
    --border:       #DDE1E7;
    --text:         #384757;
    --shadow-sm:    0 1px 3px rgba(27,54,93,0.08);
    --shadow-md:    0 4px 12px rgba(27,54,93,0.12);
    --shadow-lg:    0 8px 24px rgba(27,54,93,0.15);
    --radius:       10px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.25;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--ink); }

.page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ─── Navigation ─── */
.nav {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0.9rem 0;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-sm);
}
.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}
.nav-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    line-height: 1;
}
.nav-logo { height: 36px; width: auto; }
.nav-title {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 800;
    color: var(--ink);
    font-size: 0.88rem;
    letter-spacing: 0;
    line-height: 1;
}
.nav-title .nav-sub {
    color: var(--imb-orange);
    font-weight: 700;
}
.nav-links {
    margin-left: auto;
    list-style: none;
    display: flex;
    gap: 1.5rem;
}
.nav-links a {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Nunito Sans', sans-serif;
    transition: color 0.15s;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--ink);
}

/* ─── Hero ─── */
.hero {
    background: linear-gradient(135deg, var(--ink) 0%, var(--ink-deep) 100%);
    color: var(--white);
    padding: 4.5rem 0 4rem 0;
    text-align: center;
}
.hero h1 {
    color: var(--white);
    font-size: 2.75rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.8rem;
}
.hero-eyebrow {
    color: var(--imb-orange);
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.hero-sub {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.88);
    max-width: 680px;
    margin: 0 auto 1.8rem auto;
}
.hero-cta {
    display: inline-block;
    background: var(--imb-orange);
    color: var(--white);
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 1.8rem;
    border-radius: var(--radius);
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: var(--shadow-md);
}
.hero-cta:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}
.hero-cta.secondary {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.4);
    margin-left: 0.6rem;
    box-shadow: none;
}
.hero-cta.secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.7);
}

/* ─── Sections ─── */
.section {
    padding: 4rem 0;
}
.section-alt { background: var(--white); }
.section-label {
    color: var(--imb-orange);
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}
.section-title {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    letter-spacing: -0.02em;
}
.section-intro {
    font-size: 1.05rem;
    max-width: 680px;
    margin-bottom: 2.2rem;
    color: var(--muted);
}

/* ─── Cards ─── */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.15s, transform 0.15s;
}
.card:hover {
    box-shadow: var(--shadow-md);
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
}
.card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}
.card-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 50%;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

/* ─── Stats strip ─── */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem 1.6rem;
    margin: 2rem 0 0 0;
    box-shadow: var(--shadow-sm);
}
.stat .stat-num {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    color: var(--ink);
    line-height: 1;
}
.stat .stat-label {
    font-size: 0.82rem;
    color: var(--muted);
    letter-spacing: 0.04em;
    margin-top: 0.3rem;
    text-transform: uppercase;
    font-weight: 600;
}

/* ─── Form ─── */
.form-grid {
    display: grid;
    gap: 1.1rem;
    max-width: 680px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
}
.form-field label {
    display: block;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--ink);
    margin-bottom: 0.35rem;
    letter-spacing: 0.01em;
}
.form-field .hint {
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: 0.3rem;
    line-height: 1.5;
}
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    font-family: inherit;
    font-size: 1rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    color: var(--text);
    transition: border 0.15s, box-shadow 0.15s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}
.form-field textarea { min-height: 100px; resize: vertical; line-height: 1.55; }
.form-field.required label::after {
    content: ' *';
    color: var(--imb-red);
}

.btn {
    display: inline-block;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
    text-decoration: none;
}
.btn-primary {
    background: var(--imb-orange);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
    background: #d66b1d;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}
.btn-secondary {
    background: var(--white);
    color: var(--ink);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    background: var(--bg);
    border-color: var(--accent);
    color: var(--ink);
}
.btn-ghost {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent-mid);
}
.btn-ghost:hover {
    background: var(--accent-light);
    color: var(--ink);
}

.flash {
    padding: 0.9rem 1.1rem;
    border-radius: 8px;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    line-height: 1.5;
}
.flash.ok { background: rgba(0,150,129,0.08); color: #006b5c; border: 1px solid rgba(0,150,129,0.25); }
.flash.err { background: rgba(184,58,75,0.08); color: #8e2535; border: 1px solid rgba(184,58,75,0.25); }

/* ─── Tags / pills ─── */
.pill {
    display: inline-block;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: var(--accent-light);
    color: var(--accent);
}
.pill.eliminated { background: rgba(0,150,129,0.12); color: #006b5c; }
.pill.modified   { background: rgba(232,119,34,0.15); color: #a85311; }
.pill.consolidated { background: rgba(27,54,93,0.10); color: var(--ink); }
.pill.kept       { background: rgba(112,115,114,0.15); color: var(--muted); }
.pill.deferred   { background: rgba(243,213,78,0.3); color: #6b5700; }
.pill.pending    { background: rgba(243,213,78,0.3); color: #6b5700; }
.pill.under_review { background: rgba(72,122,123,0.15); color: var(--accent); }

/* ─── Burden / decision cards ─── */
.item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.3rem 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.item:hover {
    border-color: var(--accent-mid);
    box-shadow: var(--shadow-md);
}
.item-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}
.item-title {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--ink);
    line-height: 1.3;
}
.item-meta {
    font-size: 0.83rem;
    color: var(--muted);
    margin-top: 0.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}
.item-meta .dot::before { content: '·'; margin-right: 0.6rem; color: var(--prompt); }
.item-desc { font-size: 0.96rem; margin-top: 0.4rem; color: var(--text); }
.item-sub {
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px dashed var(--border);
}
.item-sub h4 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 0.3rem;
    font-weight: 700;
}
.item-sub p { margin-bottom: 0.7rem; font-size: 0.94rem; }
.item-sub p:last-child { margin-bottom: 0; }

/* ─── Footer ─── */
.footer {
    background: var(--ink-deep);
    color: rgba(255,255,255,0.7);
    padding: 2.2rem 0;
    text-align: center;
    margin-top: 4rem;
    font-size: 0.9rem;
}
.footer-inner img { height: 24px; margin-bottom: 0.7rem; }
.footer-inner a { color: var(--imb-orange); }
.footer-inner a:hover { color: var(--white); }

/* ─── Utilities ─── */
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

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

/* ─── Responsive ─── */
@media (max-width: 720px) {
    .hero { padding: 3rem 0; }
    .hero h1 { font-size: 2rem; }
    .section { padding: 2.8rem 0; }
    .section-title { font-size: 1.6rem; }
    .form-row { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .nav-inner { gap: 0.8rem; }
    .page { padding: 0 1.2rem; }
    .hero-cta.secondary { margin-left: 0; margin-top: 0.5rem; display: inline-block; }
}
