/* Women of Satoshi Cooperative — warm Malawian palette, rising-sun motif */

:root {
  --bg: #faf5ec;
  --surface: #ffffff;
  --ink: #26201a;
  --muted: #5d5347;
  --line: #e7dcc9;
  --accent: #d97706;        /* amber sun */
  --accent-deep: #b45309;
  --bitcoin: #f7931a;
  --green: #1f5c3d;         /* Malawi green */
  --green-soft: #eef4ee;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}
img, svg { max-width: 100%; display: block; }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent-deep);
  margin: 0 0 12px;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 600; }
a { color: var(--green); }
.section-lede { color: var(--muted); max-width: 44em; margin-top: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250, 245, 236, .92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.brand em { font-style: normal; color: var(--accent-deep); }
.brand-mark { width: 38px; height: 38px; flex: none; border-radius: 8px; }
.site-nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.site-nav a:not(.btn) { text-decoration: none; color: var(--muted); font-size: .92rem; font-weight: 500; }
.site-nav a:not(.btn):hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--accent-deep); }
.btn-small { padding: 8px 16px; font-size: .88rem; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn:disabled { opacity: .6; cursor: wait; }

/* Hero */
.hero { padding: 56px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); font-weight: 700; margin: 0 0 16px; }
h1 .accent { color: var(--accent); font-style: italic; }
.lede { font-size: 1.15rem; color: var(--muted); margin: 0 0 24px; max-width: 34em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.hero-note { font-size: .9rem; color: var(--muted); margin: 0 0 18px; }

/* Hero logo & partner lockup */
.hero-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.hero-logo {
  width: min(300px, 80%);
  border-radius: 20px;
  box-shadow: 0 14px 40px rgba(38, 32, 26, .18);
}
.partner-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 18px 10px 10px;
  font-size: .88rem;
  line-height: 1.3;
  color: var(--muted);
}
.partner-lockup img { width: 40px; height: 40px; border-radius: 9px; }
.partner-lockup strong { color: var(--ink); }

/* Light Node badge */
.node-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px 8px 8px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.node-badge img { width: 30px; height: 30px; border-radius: 7px; }

/* Textile strip divider */
.strip {
  height: 12px;
  background: repeating-linear-gradient(
    -45deg,
    var(--green) 0 14px,
    var(--bitcoin) 14px 28px,
    var(--ink) 28px 42px
  );
}

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--green-soft); }
.section h2 { max-width: 22em; }

/* Mission & vision */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 36px; }
.mv-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--bitcoin);
  border-radius: var(--radius);
  padding: 26px;
}
.mv-card.mv-alt { border-left-color: var(--green); }
.mv-card h2 { font-size: 1.35rem; }
.mv-card > p:first-of-type {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.45;
  margin: 0 0 12px;
}
.mv-src { font-size: .85rem; color: var(--muted); margin: 0; }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { font-size: 1.15rem; }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }
.facts { margin-top: 0; }

/* Program cards */
.card.program { border-top: 4px solid var(--bitcoin); }
.card.program:nth-child(3n+2) { border-top-color: var(--green); }
.card.program:nth-child(3n) { border-top-color: var(--accent-deep); }
.card.program strong { color: var(--ink); }

/* Free materials */
.card.material { display: flex; flex-direction: column; gap: 10px; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.card.material:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(38,32,26,.08); }
.material-link { margin-top: auto; font-weight: 600; font-size: .92rem; color: var(--accent-deep); }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.member {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.member-photo, .member-initials {
  width: 92px; height: 92px;
  border-radius: 50%;
  margin: 0 auto 14px;
  object-fit: cover;
}
.member-initials {
  background: var(--green);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
}
.member h3 { font-size: 1.08rem; margin-bottom: 2px; }
.member .role { color: var(--accent-deep); font-weight: 600; font-size: .85rem; margin: 0 0 8px; text-transform: uppercase; letter-spacing: .06em; }
.member .bio { color: var(--muted); font-size: .9rem; margin: 0; }

/* Gallery */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.gallery figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; height: 260px; object-fit: cover; object-position: center 30%; }
.gallery figcaption { padding: 12px 16px; font-size: .9rem; color: var(--muted); }
.contact-direct { font-size: 1rem; margin: 0 0 8px; }
.contact-direct strong { color: var(--ink); }

/* Team join card */
.member-join { text-decoration: none; border-style: dashed; border-width: 2px; }
.member-join:hover { border-color: var(--accent); }
.member-join-mark { background: var(--accent); font-size: 2rem; }
.member-join:hover .member-join-mark { background: var(--accent-deep); }
.member-join h3 { color: var(--ink); }

/* Apply form */
.apply-wrap { max-width: 760px; }
.apply-form { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.apply-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .92rem; }
.apply-form input, .apply-form select, .apply-form textarea {
  font: inherit;
  font-weight: 400;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  width: 100%;
}
.apply-form input:focus, .apply-form select:focus, .apply-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.apply-form .btn { align-self: flex-start; }
.apply-status { font-weight: 600; margin: 0; min-height: 1.4em; }
.apply-status a { color: var(--green); }
.privacy-note { font-size: .82rem; color: var(--muted); margin: 0; }

/* CTA */
.cta {
  background: var(--ink);
  color: var(--bg);
  text-align: center;
}
.cta h2 { margin-left: auto; margin-right: auto; }
.cta p { color: #cfc6b8; max-width: 36em; margin: 0 auto 24px; }
.cta .hero-actions { justify-content: center; margin-bottom: 0; }
.cta .btn-ghost { color: var(--bg); border-color: var(--bg); }
.cta .btn-ghost:hover { background: var(--bg); color: var(--ink); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; background: var(--bg); }
.footer-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-row p { margin: 0; font-size: .9rem; color: var(--muted); }
.footer-row a { color: var(--muted); }

/* Responsive */
@media (max-width: 860px) {
  .hero-grid, .mv-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 380px; margin: 0 auto; }
  .grid-3, .team-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-bottom: 12px;
    gap: 12px;
  }
  .header-row { flex-direction: column; align-items: center; }
}
