/* ============================================================
   AI in Mental Health CoP — styles.css
   Deep Forest palette (Compassion Collectif standing palette)
   Mobile-first, 390px baseline. WCAG AA. No red-green pairs.
   ============================================================ */

:root {
  --bg: #F7F9F5;
  --card: #FFFFFF;
  --surface: #DDE7D8;
  --primary: #2E4A34;        /* anchor */
  --forest: #4F6B4F;         /* accent */
  --clover: #779E77;
  --seagreen: #8FBC8F;
  --highlight: #BFFCC6;      /* mint — dark text only */
  --primary-light: #E7F0E4;
  --text: #23361F;
  --text-mid: #3E5540;
  --border: #C9D9C4;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(46, 74, 52, 0.10);
}

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}

h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; color: var(--primary); line-height: 1.25; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
p  { margin-bottom: 1rem; color: var(--text-mid); }
a  { color: var(--forest); }

/* ---- layout ---- */
.wrap { max-width: 720px; margin: 0 auto; padding: 0 1.25rem; }
section { padding: 2.5rem 0; }

/* ---- header ---- */
header.site {
  background: var(--primary);
  color: #fff;
  padding: 0.9rem 0;
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand { font-family: 'Playfair Display', Georgia, serif; font-size: 1.1rem; color: #fff; text-decoration: none; line-height: 1.3; }
.brand-tag { display: block; font-family: 'Inter', system-ui, sans-serif; font-size: 0.7rem; font-weight: 400; color: var(--primary-light); letter-spacing: 0.01em; }
nav.main a { color: var(--primary-light); text-decoration: none; margin-left: 1rem; font-size: 0.95rem; }
nav.main a:hover { color: #fff; }

/* ---- hero ---- */
.hero { background: var(--primary); color: #fff; padding: 3.5rem 0 3rem; }
.hero h1 { color: #fff; font-size: 2.2rem; margin-bottom: 1rem; }
.hero p { color: var(--primary-light); font-size: 1.1rem; max-width: 34em; }
.hero .kicker {
  display: inline-block; background: var(--highlight); color: var(--text);
  border-radius: 999px; padding: 0.25rem 0.9rem; font-size: 0.85rem;
  font-weight: 600; margin-bottom: 1.25rem;
}

/* ---- cards & chips ---- */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
}
.card.surface { background: var(--primary-light); }

a.card {
  display: block; text-decoration: none; color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
a.card:hover { transform: translateY(-2px); box-shadow: 0 4px 18px rgba(46, 74, 52, 0.16); }
.living-labs-link {
  display: inline-block; margin-top: 0.5rem; font-weight: 600; color: var(--primary);
}
.chip {
  display: inline-block; background: var(--surface); color: var(--text-mid);
  border-radius: 999px; padding: 0.2rem 0.75rem; font-size: 0.8rem; font-weight: 600;
}

/* ---- questions ---- */
.q-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--forest); color: #fff;
  font-family: 'Playfair Display', Georgia, serif; font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

/* ---- buttons ---- */
.btn {
  display: inline-block; border: none; cursor: pointer; text-decoration: none;
  font-family: inherit; font-size: 1rem; font-weight: 600;
  border-radius: 999px; padding: 0.7rem 1.6rem; transition: background 0.15s ease;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--forest); }
.btn-light { background: var(--highlight); color: var(--text); }
.btn-light:hover { background: var(--seagreen); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* ---- forms ---- */
label { display: block; font-weight: 600; margin: 1.1rem 0 0.3rem; color: var(--text); }
label .hint { display: block; font-weight: 400; font-size: 0.85rem; color: var(--text-mid); }
input, select, textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--text);
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 0.65rem 0.85rem;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--clover); border-color: var(--clover); }
textarea { min-height: 5.5rem; resize: vertical; }
fieldset { border: none; margin-top: 1.1rem; }
fieldset legend { font-weight: 600; margin-bottom: 0.3rem; }
.check-row { display: flex; align-items: flex-start; gap: 0.55rem; margin: 0.35rem 0; font-weight: 400; }
.check-row input { width: auto; margin-top: 0.3rem; }

/* ---- notices ---- */
.notice { border-radius: 10px; padding: 0.8rem 1rem; margin: 1rem 0; font-size: 0.95rem; display: none; }
.notice.ok { display: block; background: var(--primary-light); color: var(--text); border: 1px solid var(--clover); }
.notice.err { display: block; background: #FDF3EC; color: #6B3A1F; border: 1px solid #E0B48F; }

/* ---- event block ---- */
.event-meta { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 0.5rem 0 1rem; }

/* ---- footer ---- */
footer.site {
  background: var(--surface); color: var(--text-mid);
  padding: 2rem 0; margin-top: 2rem; font-size: 0.9rem;
}

@media (min-width: 700px) {
  h1 { font-size: 2.5rem; }
  .hero h1 { font-size: 2.8rem; }
  .q-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .q-grid .card { margin-bottom: 0; }
}
