/*
Theme Name: BOCEM
Theme URI: https://bocem.org
Author: Bocozelle En Marche
Description: Modern community site for Bocozelle En Marche — news, quarterly reports, and a members directory.
Version: 1.5.8
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: MIT
Text Domain: bocem
Tags: community, blog, custom-post-types
*/

:root {
  --paper: #f7f3ec;
  --paper-2: #efe9de;
  --ink: #1c2b22;
  --ink-soft: #4a564d;
  --muted: #6f7a6f;
  --green: #2f5d3a;
  --green-deep: #23452d;
  --terra: #c25e2e;
  --terra-soft: #e8d5c6;
  --line: #d8d2c4;
  --card: #fffdf9;
  --radius: 14px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.entry-content img { border-radius: var(--radius); }
.entry-content a { color: var(--terra); text-decoration: underline; }
.entry-content h2, .entry-content h3 { font-family: var(--font-display); margin: 1.4em 0 .5em; }
.entry-content p { margin: 0 0 1.1em; }
.entry-content ul, .entry-content ol { margin: 0 0 1.1em 1.4em; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: 15px;
  background: var(--green); color: #fff;
  border: 1px solid var(--green);
  transition: background .2s, transform .15s;
  cursor: pointer;
}
.btn:hover { background: var(--green-deep); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--paper-2); }
.btn.terra { background: var(--terra); border-color: var(--terra); }
.btn.terra:hover { background: #a94e24; }

/* Header */
header.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand .mark { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; }
.brand .sub { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.main-nav ul { display: flex; gap: 4px; list-style: none; }
.main-nav a { display: inline-block; padding: 10px 14px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--ink-soft); transition: background .2s, color .2s; }
.main-nav a:hover, .main-nav .current-menu-item a { background: var(--paper-2); color: var(--ink); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 18px; cursor: pointer; }

/* Hero */
.hero { padding: 88px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--terra); margin-bottom: 20px; }
.kicker::before { content: ""; width: 32px; height: 2px; background: var(--terra); }
h1 { font-family: var(--font-display); font-size: clamp(40px, 6vw, 68px); line-height: 1.05; letter-spacing: -0.02em; font-weight: 600; margin-bottom: 22px; }
h1 em { font-style: italic; color: var(--green); }
.lede { font-size: 19px; color: var(--ink-soft); max-width: 52ch; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-photo { position: relative; border-radius: var(--radius); aspect-ratio: 4 / 4.6; overflow: hidden; background: radial-gradient(120% 90% at 20% 10%, #4d7a55 0%, transparent 55%), radial-gradient(100% 80% at 85% 90%, #c25e2e55 0%, transparent 60%), linear-gradient(160deg, #2f5d3a, #1c2b22); display: flex; align-items: flex-end; }
.hero-photo .tag { margin: 18px; padding: 10px 16px; border-radius: 999px; background: #ffffffd9; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Sections */
section { padding: 72px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.sec-head h2 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.015em; font-weight: 600; }
.sec-head p { color: var(--muted); font-size: 16px; max-width: 46ch; }
.link-more { font-weight: 700; font-size: 15px; color: var(--terra); display: inline-flex; align-items: center; gap: 6px; }
.link-more:hover { text-decoration: underline; }

/* What we do */
.pills { border-top: 1px solid var(--line); }
.pill-row { display: grid; grid-template-columns: 72px 1fr 1.2fr; gap: 32px; padding: 30px 8px; border-bottom: 1px solid var(--line); transition: background .2s; }
.pill-row:hover { background: var(--card); }
.pill-row .num { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--terra); padding-top: 4px; }
.pill-row h3 { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.pill-row p { color: var(--ink-soft); font-size: 15.5px; }

/* News */
.news { background: var(--paper-2); }
.news-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; }
.featured { border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; }
.featured .ph { aspect-ratio: 16 / 9; background: linear-gradient(150deg, #3a6b47, #23452d); display: flex; align-items: flex-end; overflow: hidden; }
.featured .ph img { width: 100%; height: 100%; object-fit: cover; }
.featured .ph span { margin: 16px 20px; font-size: 12.5px; font-weight: 600; color: #e9efe9; }
.featured .body { padding: 26px 28px 28px; }
.meta { display: flex; gap: 14px; align-items: center; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.meta .cat { color: var(--terra); }
.featured h3 { font-family: var(--font-display); font-size: 27px; line-height: 1.15; font-weight: 600; margin-bottom: 12px; }
.featured p { color: var(--ink-soft); font-size: 15.5px; }
.news-list { display: flex; flex-direction: column; }
.news-item { display: grid; grid-template-columns: 88px 1fr; gap: 18px; align-items: start; padding: 20px 4px; border-bottom: 1px solid var(--line); transition: background .2s; }
.news-item:first-child { padding-top: 0; }
.news-item:hover { background: var(--card); }
.news-item .date { font-size: 12.5px; font-weight: 700; color: var(--muted); padding-top: 6px; letter-spacing: 0.04em; text-transform: uppercase; }
.news-item h4 { font-size: 17.5px; font-weight: 700; line-height: 1.3; margin-bottom: 6px; }
.news-item p { font-size: 14px; color: var(--ink-soft); }

/* Reports */
.reports { background: var(--green-deep); color: #eef3ee; }
.reports .sec-head h2 { color: #fff; }
.reports .sec-head p { color: #b8c8b8; }
.report-list { display: flex; flex-direction: column; gap: 14px; }
.report { display: grid; grid-template-columns: 110px 1fr auto auto; gap: 24px; align-items: center; background: #ffffff0d; border: 1px solid #ffffff22; border-radius: var(--radius); padding: 20px 26px; transition: background .2s, transform .15s; }
.report:hover { background: #ffffff14; transform: translateX(4px); }
.report .q { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: #f0c9a8; }
.report .t { font-weight: 600; font-size: 16.5px; }
.report .t small { display: block; font-weight: 500; color: #a9bca9; font-size: 13px; margin-top: 2px; }
.report .size { font-size: 13px; color: #a9bca9; font-variant-numeric: tabular-nums; }
.dl { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid #ffffff44; color: #fff; font-weight: 700; font-size: 14px; transition: background .2s; }
.dl:hover { background: #ffffff1c; }
.reports-note { margin-top: 26px; font-size: 13.5px; color: #a9bca9; }

/* Members */
.members-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.member { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; text-align: center; transition: transform .2s, box-shadow .2s; }
.member:hover { transform: translateY(-4px); box-shadow: 0 12px 28px -14px #1c2b2233; }
.avatar { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 24px; font-weight: 700; color: #fff; background: var(--green); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.member h4 { font-size: 16px; font-weight: 700; margin-bottom: 3px; }
.member .role { font-size: 13px; font-weight: 600; color: var(--terra); }
.member .bio { font-size: 13px; color: var(--muted); margin-top: 8px; }
.members-cta { margin-top: 30px; text-align: center; }

/* Events */
.events { background: var(--paper-2); }
.event-row { display: grid; grid-template-columns: 96px 1fr auto; gap: 28px; align-items: center; padding: 24px 4px; border-bottom: 1px solid var(--line); }
.event-row:first-of-type { border-top: 1px solid var(--line); }
.event-date { background: var(--terra-soft); color: #8a3d17; border-radius: 12px; padding: 10px 0; text-align: center; font-weight: 700; }
.event-date b { display: block; font-size: 24px; font-family: var(--font-display); line-height: 1.1; }
.event-date span { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.event-row h4 { font-size: 18px; font-weight: 700; }
.event-row p { font-size: 14px; color: var(--ink-soft); }
.event-tag { font-size: 12.5px; font-weight: 700; padding: 7px 14px; border-radius: 999px; background: var(--green); color: #fff; white-space: nowrap; }

/* Projects */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.project-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px -14px #1c2b2233; }
.project-card .ph { aspect-ratio: 16 / 10; background: var(--paper-2); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; overflow: hidden; }
.project-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.project-card:hover .ph img { transform: scale(1.04); }
.project-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.project-card .meta { display: flex; gap: 8px; flex-wrap: wrap; }
.project-card .cat { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--terra); }
.project-card .status { font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--green); color: #fff; }
.project-card h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; line-height: 1.2; }
.project-card h3 a { color: var(--ink); text-decoration: none; }
.project-card h3 a:hover { color: var(--terra); }
.project-card p { font-size: 14px; color: var(--ink-soft); }
.project-card .facts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2px; }
.project-card .fact { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.project-card .fact svg { width: 15px; height: 15px; fill: var(--muted); flex-shrink: 0; }
.project-card .learn-more { margin-top: auto; font-size: 13.5px; font-weight: 700; color: var(--green-deep); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.project-card .learn-more:hover { color: var(--terra); }

/* Single post */
.post-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.post-hero { padding: 56px 0 8px; }
.post-hero .meta { font-size: 14px; }
.post-hero h1 { font-size: clamp(34px, 5vw, 56px); margin: 10px 0 18px; }
.post-content { padding: 24px 0 64px; }
.post-content .entry-content { font-size: 17px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-info h3 { font-family: var(--font-display); font-size: 26px; font-weight: 600; margin-bottom: 16px; }
.contact-line { display: flex; gap: 12px; align-items: center; padding: 10px 0; font-size: 15.5px; color: var(--ink-soft); border-bottom: 1px dashed var(--line); }
.contact-line b { color: var(--ink); font-weight: 700; }
.socials { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.socials a { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--ink-soft); transition: border-color .2s, color .2s; }
.socials a:hover { border-color: var(--terra); color: var(--terra); }
.news-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.news-box h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.news-box > p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); font-family: inherit; font-size: 14.5px; color: var(--ink); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--green); border-color: transparent; }
.form-ok { margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--green); }

/* Footer */
footer.site-footer { background: var(--ink); color: #b9c2b9; padding: 48px 0 32px; }
.foot-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
footer .mark { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: #fff; }
footer p { font-size: 14px; max-width: 40ch; }
footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
footer a { font-size: 14px; color: #b9c2b9; }
footer a:hover { color: #fff; }
.foot-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid #ffffff1a; font-size: 12.5px; color: #8a958a; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } }

/* Responsive */
@media (max-width: 900px) {
  /* Mobile header: hamburger left, logo centered, CTA right */
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .main-nav.open ul { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px 24px; }
  .menu-toggle { display: inline-flex; order: 1; }
  .brand { order: 2; }
  .nav .btn { order: 3; }
  .hero-grid, .news-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; aspect-ratio: 16 / 9; }
  .pill-row { grid-template-columns: 48px 1fr; }
  .pill-row p { grid-column: 2; }
  .members-grid { grid-template-columns: repeat(2, 1fr); }
  .report { grid-template-columns: 1fr; gap: 10px; }
  .report .size { display: none; }
  .event-row { grid-template-columns: 76px 1fr; }
  .event-tag { grid-column: 2; justify-self: start; }
  .projects-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .members-grid { grid-template-columns: 1fr; }
}
