/* movement.css - the shared shell for the four public launch pages:
 * index (landing), charter, what-is-do-with, blog.
 *
 * These pages are deliberately separate from the platform's admin surfaces.
 * They carry the Organic identity directly - cream ground, cocoa text,
 * terracotta and sage - and load no Firebase SDK.
 *
 * Palette and type come from design/dowith-identity.md. Load AFTER fonts.css.
 */

:root {
  --terracotta:   #C67139;
  --terracotta-d: #8C491A;
  --sage:         #7A8A5E;
  --sage-d:       #5E6B45;
  --cocoa:        #402310;
  --sand:         #EBDDC5;
  --cream:        #F5EAD8;
  --ink:          #2B2019;
  --muted:        #7E766D;
  --line:         #DFD3BE;
  --card:         #FFFFFF;
  --radius:       18px;
  --shadow:       0 2px 4px rgba(64,35,16,0.04), 0 12px 32px rgba(64,35,16,0.08);
  --wrap:         1120px;
}

* , *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--terracotta-d); }

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

/* ── nav ─────────────────────────────────────────────────────────── */
.mv-nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(245, 234, 216, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.mv-nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 72px;
}
/* The brand is the Do:With wordmark lockup - the mark standing in as the
   colon, with the name already set in Caprasimo. No text span beside it: the
   image carries the name, so a span would say it twice. Sized by height with
   auto width, so the lockup's own proportions are never squashed. */
.mv-brand { display: inline-flex; align-items: center; text-decoration: none; }
.mv-brand img { height: 34px; width: auto; display: block; }
.mv-links { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.mv-links a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 8px 14px; border-radius: 100px; transition: background .18s, color .18s;
}
.mv-links a:hover { background: var(--sand); }
.mv-links a[aria-current="page"] { background: var(--sand); color: var(--terracotta-d); }

/* ── generic blocks ──────────────────────────────────────────────── */
.mv-section { padding: 88px 0; }
.mv-section--tight { padding: 56px 0; }
.mv-eyebrow {
  font-size: .75rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--terracotta-d); margin: 0 0 14px;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; color: var(--cocoa); line-height: 1.12; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin: 0 0 20px; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin: 0 0 18px; }
h3 { font-size: 1.2rem; margin: 0 0 10px; }
.mv-lead { font-size: clamp(1.05rem, 1.9vw, 1.28rem); color: #5A5048; max-width: 62ch; }
p { margin: 0 0 18px; }

.mv-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow);
}
.mv-panel { background: var(--sand); border-radius: var(--radius); padding: 32px; }

.mv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--terracotta-d); color: #fff; border: none;
  border-radius: 100px; padding: 14px 28px; font: inherit; font-weight: 700;
  cursor: pointer; text-decoration: none; transition: background .18s, transform .18s;
}
.mv-btn:hover:not(:disabled) { background: var(--cocoa); transform: translateY(-1px); }
.mv-btn:disabled { opacity: .55; cursor: not-allowed; }
.mv-btn--ghost {
  background: transparent; color: var(--terracotta-d);
  border: 1.5px solid var(--terracotta);
}
.mv-btn--ghost:hover { background: var(--sand); color: var(--cocoa); transform: translateY(-1px); }

/* ── forms ───────────────────────────────────────────────────────── */
.mv-field { margin-bottom: 18px; }
.mv-field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.mv-field .mv-hint { font-weight: 400; color: var(--muted); font-size: .82rem; }
.mv-field input[type=text], .mv-field input[type=email], .mv-field input[type=url],
.mv-field textarea, .mv-field select {
  width: 100%; padding: 12px 14px; font: inherit;
  border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink);
}
.mv-field textarea { min-height: 104px; resize: vertical; }
.mv-field input:focus, .mv-field textarea:focus {
  outline: none; border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(198, 113, 57, .16);
}
.mv-check { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0; }
.mv-check input { width: 18px; height: 18px; margin-top: 3px; flex: 0 0 auto; }
.mv-check label { font-size: .88rem; color: #5A5048; }

/* The honeypot. Off-screen rather than display:none - some bots skip hidden
   fields but happily fill one that is merely positioned away. */
.mv-hp {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden;
}

.mv-msg { font-size: .9rem; margin-top: 14px; padding: 12px 14px; border-radius: 12px; display: none; }
.mv-msg.is-error { display: block; background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.mv-msg.is-ok    { display: block; background: #F0F5E8; color: var(--sage-d); border: 1px solid #D6E2C2; }

.mv-drop {
  border: 1.5px dashed var(--line); border-radius: 12px; padding: 18px;
  text-align: center; cursor: pointer; background: #fff; transition: border-color .18s, background .18s;
}
.mv-drop:hover, .mv-drop.is-over { border-color: var(--terracotta); background: #FFFBF6; }
.mv-drop input { display: none; }
.mv-drop-preview { display: none; max-height: 88px; margin: 0 auto 10px; }
.mv-drop.has-file .mv-drop-preview { display: block; }

/* ── footer ──────────────────────────────────────────────────────── */
.mv-footer {
  background: var(--cocoa); color: #E7DACB; padding: 56px 0 40px; margin-top: 0;
}
.mv-footer a { color: #E7DACB; text-decoration: none; }
.mv-footer a:hover { text-decoration: underline; }
.mv-footer-inner { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
/* Footer lockups use the -rev pair: the footer ground IS cocoa, which is the
   ink the light-ground wordmarks are drawn in, so those would vanish here. */
.mv-footer-brand { margin-bottom: 14px; }
.mv-footer-brand img { height: 38px; width: auto; display: block; }
.mv-footer small { color: #B8A794; }
.mv-footer nav { display: flex; flex-direction: column; gap: 8px; font-size: .92rem; }

/* The people motif fills the gap the two-column footer leaves down the middle.
   It uses the -rev artwork for exactly the reason the lockups do: the supplied
   strokes are #402310, which IS --cocoa, which IS this background - the plain
   file would show as heads floating with no bodies. `min-width: 0` is
   load-bearing, or the 2200px-wide image sets the flex item's floor and pushes
   the nav off the row. */
.mv-footer-people {
  flex: 1 1 220px; min-width: 0;
  display: flex; align-items: center; justify-content: center;
}
.mv-footer-people img { width: 100%; max-width: 620px; height: auto; opacity: .85; }

/* The '& By' lockup closes the footer on its own line rather than sitting
   beside the name. It is the progression's last step, not a second logo, and a
   full-width rule under the page reads as the statement it is. */
.mv-footer-by {
  margin-top: 44px; padding-top: 32px;
  border-top: 1px solid rgba(245, 234, 216, 0.16);
  text-align: center;
}
.mv-footer-by img { height: 46px; width: auto; max-width: 100%; display: inline-block; }

@media (max-width: 720px) {
  .mv-section { padding: 60px 0; }
  .mv-nav-inner { flex-direction: column; align-items: flex-start; padding: 12px 0; }
  .mv-card, .mv-panel { padding: 24px; }
  .mv-footer-by { margin-top: 32px; padding-top: 24px; }
  .mv-footer-by img { height: 34px; }
  /* Hidden rather than stacked: the middle gap it fills only exists while the
     footer is two columns, and at 375px a 6:1 strip is 62px tall, which puts
     the heads under 10px and the strokes under a pixel - muddy, not delicate. */
  .mv-footer-people { display: none; }
}
