/* Arches Fund v3 — Reclaimed Wood + Carrara Marble design system */
/* Include this in every page via <link rel="stylesheet" href="shared.css"> */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Jost:wght@300;400;500&display=swap');

:root {
  --wood-dark:   #3a2410;
  --wood-mid:    #5a3a1a;
  --wood-light:  #7a5228;
  --marble-bg:   #faf8f4;
  --marble-warm: #f4efe6;
  --marble-white:#fdfcfa;
  --gold:        #a87830;
  --gold-light:  #c8a060;
  --gold-pale:   #e8d0a0;
  --ink:         #1a1208;
  --slate:       #5a4a38;
  --muted:       #8a7a68;
  --cream:       #fdf9f4;
  --white:       #ffffff;
  --border:      rgba(120,90,50,0.15);
  --border2:     rgba(120,90,50,0.25);
  --sidebar-w:   80px;
  --success:     #4a8f5a;
  --error:       #963028;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Jost', sans-serif; background: var(--marble-bg); color: var(--ink); }

/* ── SIDEBAR ─────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 100; display: flex; flex-direction: column;
  align-items: center; overflow: hidden;
}
.sidebar-wood { position: absolute; inset: 0; background: var(--wood-dark); }
.sidebar-wood svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sidebar-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; height: 100%;
  width: 100%; padding: 28px 0;
}
.sb-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px; font-weight: 700;
  color: var(--gold-pale); letter-spacing: 3px;
  writing-mode: vertical-rl; transform: rotate(180deg);
  text-decoration: none; margin-bottom: auto;
}
.sb-nav { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 18px; }
.sb-icon {
  width: 38px; height: 38px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.35); text-decoration: none;
  transition: all 0.2s; border: 1px solid transparent;
}
.sb-icon:hover, .sb-icon.active {
  background: rgba(168,120,48,0.18);
  border-color: rgba(168,120,48,0.3);
  color: var(--gold-light);
}
.sb-icon svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sb-apply {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--gold); display: flex;
  align-items: center; justify-content: center;
  color: white; text-decoration: none; transition: all 0.2s;
}
.sb-apply:hover { background: var(--gold-light); transform: scale(1.05); }
.sb-apply svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.sb-back {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.3); text-decoration: none;
  transition: all 0.2s; margin-top: auto;
}
.sb-back:hover { color: var(--gold-light); background: rgba(168,120,48,0.15); }
.sb-back svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; }

/* ── MAIN OFFSET ─────────────────────────────────────────────── */
.main { margin-left: var(--sidebar-w); flex: 1; min-height: 100vh; }

/* ── WOOD PANEL (reusable dark section) ──────────────────────── */
.wood-panel { position: relative; overflow: hidden; }
.wood-panel-bg { position: absolute; inset: 0; background: var(--wood-dark); }
.wood-panel-bg svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.wood-panel-content { position: relative; z-index: 1; }

/* ── MARBLE PANEL (reusable light section) ───────────────────── */
.marble-panel { position: relative; background: var(--marble-bg); overflow: hidden; }
.marble-panel-bg { position: absolute; inset: 0; pointer-events: none; }

/* ── FORM FIELDS ─────────────────────────────────────────────── */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.field-row.single { grid-template-columns: 1fr; }
.field-row.triple { grid-template-columns: 1fr 1fr 1fr; }
.field-group { display: flex; flex-direction: column; gap: 8px; }
.field-group label { font-size: 11px; font-weight: 500; color: var(--slate); letter-spacing: 0.5px; text-transform: uppercase; }
.field-group input, .field-group select, .field-group textarea {
  padding: 12px 16px; border: 1.5px solid var(--border2); border-radius: 3px;
  background: var(--marble-white); font-family: 'Jost', sans-serif;
  font-size: 14px; color: var(--ink); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s; width: 100%;
}
.field-group input:focus, .field-group select:focus, .field-group textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(168,120,48,0.1);
}
.field-group textarea { min-height: 88px; resize: vertical; line-height: 1.6; }
.field-hint { font-size: 11px; color: var(--muted); }
.field-error { font-size: 11px; color: var(--error); display: none; }
.field-group.has-error .field-error { display: block; }
.field-group.has-error input, .field-group.has-error select { border-color: var(--error); }

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn-ink {
  background: var(--ink); color: var(--cream);
  padding: 13px 34px; border-radius: 3px;
  font-family: 'Jost', sans-serif; font-size: 11px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
  border: none; cursor: pointer; transition: all 0.2s; display: inline-block; text-decoration: none;
}
.btn-ink:hover { background: var(--gold); transform: translateY(-1px); }
.btn-ghost {
  background: none; border: 1.5px solid var(--border2);
  color: var(--slate); padding: 13px 22px; border-radius: 3px;
  font-family: 'Jost', sans-serif; font-size: 12px;
  cursor: pointer; transition: all 0.2s; font-weight: 400;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ── PILLS / CHIPS ───────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 10px; font-weight: 500; letter-spacing: 0.3px;
}
.pill::before { content: '●'; font-size: 6px; }
.pill.pending  { background: rgba(200,128,48,0.12); color: #b06820; }
.pill.matched  { background: rgba(58,112,160,0.12); color: #3a70a0; }
.pill.review   { background: rgba(168,120,48,0.12); color: var(--gold); }
.pill.funded   { background: rgba(74,143,90,0.12);  color: var(--success); }
.pill.declined { background: rgba(150,48,40,0.12);  color: var(--error); }
.pill.active   { background: rgba(74,143,90,0.12);  color: var(--success); }
.pill.pending_review { background: rgba(200,128,48,0.12); color: #b06820; }

/* ── FOOTER ──────────────────────────────────────────────────── */
.site-footer {
  background: #100c06; padding: 32px 56px;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 16px;
}
.site-footer .f-logo { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 700; color: rgba(255,255,255,0.5); }
.site-footer .f-logo span { color: var(--gold); }
.site-footer .f-links { display: flex; gap: 22px; }
.site-footer .f-links a { font-size: 12px; color: rgba(255,255,255,0.25); text-decoration: none; font-weight: 300; transition: color 0.2s; }
.site-footer .f-links a:hover { color: var(--gold-light); }
.site-footer p { font-size: 12px; color: rgba(255,255,255,0.2); font-weight: 300; }

/* ── ANIMATIONS ──────────────────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }
