/* ============================================================
   COMMUNITY PAGE — community.html

   Everything on this page is free to the visitor: the events, the
   drop box, the resources. The palette leans on --sky and --yellow
   rather than the sales-y orange the booking pages use.
============================================================ */

/* ============================================================
   PAGE HERO
   Same treatment as events.html and partners.html; each page
   carries its own copy because there is no shared stylesheet
   for it.
============================================================ */
.page-hero {
  background: var(--navy);
  background-image:
    radial-gradient(ellipse at 80% 50%, rgba(74,184,232,.2) 0%, transparent 60%),
    radial-gradient(circle, rgba(255,255,255,.5) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,.3) 1px, transparent 1px);
  background-size: 100% 100%, 150px 150px, 220px 220px;
  background-position: center, 20px 30px, 80px 70px;
  padding: 60px 20px 56px; text-align: center; color: #FFF;
}
.page-hero-eyebrow {
  display: inline-block; font-size: .76rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--yellow); margin-bottom: 12px;
}
.page-hero-title {
  font-family: var(--font-display); font-size: clamp(2rem, 6vw, 3.1rem);
  line-height: 1.1; margin-bottom: 16px;
}
.page-hero-sub {
  font-size: .97rem; font-weight: 600; color: rgba(255,255,255,.72);
  max-width: 600px; margin: 0 auto 28px; line-height: 1.65;
}
.page-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ============================================================
   TRUST BAR
============================================================ */
.cm-trust { background: var(--sky); }
.cm-trust-inner { display: flex; flex-wrap: wrap; justify-content: center; }
.cm-trust-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 22px 32px; flex: 1 1 180px; text-align: center;
  border-right: 1.5px solid rgba(255,255,255,.3); color: #FFF;
}
.cm-trust-item:last-child { border-right: none; }
.cm-trust-num   { font-family: var(--font-display); font-size: 2rem; line-height: 1; margin-bottom: 5px; }
.cm-trust-label { font-size: .82rem; font-weight: 700; opacity: .88; line-height: 1.4; }
.cm-trust-item--text .cm-trust-label { font-size: .95rem; }

/* ============================================================
   INTRO
============================================================ */
.cm-intro-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 720px) { .cm-intro-grid { grid-template-columns: 1fr 1fr; align-items: start; gap: 52px; } }

.cm-intro-text p {
  font-size: .96rem; font-weight: 600; color: var(--text-2);
  line-height: 1.75; margin-bottom: 16px; transition: color .3s;
}
.cm-intro-text p:last-child { margin-bottom: 0; }

.cm-intro-card {
  background: var(--card-bg); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md); border: 2px solid var(--border); overflow: hidden;
}
.cm-intro-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 20px 22px; border-bottom: 1.5px solid var(--border);
}
.cm-intro-item:last-child { border-bottom: none; }
.cm-intro-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.cm-intro-item strong {
  display: block; font-size: .92rem; font-weight: 800;
  color: var(--heading); margin-bottom: 4px; transition: color .3s;
}
.cm-intro-item p {
  font-size: .84rem; font-weight: 600; color: var(--text-2);
  line-height: 1.55; margin: 0; transition: color .3s;
}

/* ============================================================
   NON-PROFIT PARTNER CARDS

   One card per organisation: who they are in their own terms,
   then what we have actually done together. The coloured top
   border is the only thing that differs between them.
============================================================ */
.np-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 760px) { .np-grid { grid-template-columns: repeat(3, 1fr); } }

.np-card {
  display: flex; flex-direction: column;
  background: var(--card-bg); border-radius: var(--radius-xl);
  padding: 26px 24px 24px;
  box-shadow: var(--shadow-sm); border: 2px solid var(--border);
  border-top: 5px solid var(--sky);
  transition: transform var(--transition), box-shadow var(--transition);
}
.np-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.np-card.books   { border-top-color: var(--orange); }
.np-card.spectrum{ border-top-color: #7C3AED; }
.np-card.mamas   { border-top-color: var(--sky); }

.np-icon { font-size: 2rem; margin-bottom: 12px; }
.np-name {
  font-family: var(--font-display); font-size: 1.15rem;
  color: var(--heading); margin-bottom: 8px; transition: color .3s;
}
.np-badge {
  display: inline-block; font-size: .68rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; margin-bottom: 12px;
  background: var(--bg-alt); color: var(--text-muted);
  border: 1px solid var(--border); border-radius: var(--radius-full);
  transition: color .3s, background .3s;
}
.np-text {
  font-size: .87rem; font-weight: 600; color: var(--text-2);
  line-height: 1.65; margin-bottom: 16px; transition: color .3s;
}

/* What we do together — set off from the description so it is
   obvious which half is us and which half is them. */
.np-together {
  background: var(--bg-alt); border-radius: var(--radius-md);
  padding: 14px 16px; margin-bottom: 16px;
  transition: background .3s;
}
.np-together-label {
  display: block; font-size: .68rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--eyebrow); margin-bottom: 6px;
}
.np-together p {
  font-size: .85rem; font-weight: 700; color: var(--text-1);
  line-height: 1.6; margin: 0; transition: color .3s;
}

.np-links { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.np-link {
  font-size: .85rem; font-weight: 800; color: var(--sky);
  transition: opacity .2s;
}
.np-link:hover { opacity: .75; }

/* ============================================================
   FREE RESOURCES
============================================================ */
.res-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 600px) { .res-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .res-grid { grid-template-columns: repeat(3, 1fr); } }

.res-card {
  background: var(--card-bg); border-radius: var(--radius-lg); padding: 24px 22px;
  box-shadow: var(--shadow-sm); border: 2px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.res-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.res-icon  { font-size: 1.8rem; margin-bottom: 12px; }
.res-title { font-family: var(--font-display); font-size: 1.02rem; color: var(--heading); margin-bottom: 8px; transition: color .3s; }
.res-text  { font-size: .86rem; font-weight: 600; color: var(--text-2); line-height: 1.65; transition: color .3s; }
.res-text a { color: var(--sky); font-weight: 800; }

/* ============================================================
   EVENTS

   The featured card is the next free event; everything below it
   has already happened. Moving one from the top to the list is
   the whole maintenance job.
============================================================ */
.cm-event-featured {
  background: var(--card-bg); border-radius: var(--radius-xl);
  border: 2px solid var(--border); border-left: 6px solid var(--yellow);
  box-shadow: var(--shadow-md); padding: 30px 28px; margin-bottom: 40px;
}
@media (min-width: 760px) {
  .cm-event-featured { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
}
.cm-event-flag {
  display: inline-block; font-size: .7rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  background: var(--yellow); color: var(--navy-dark);
  padding: 5px 12px; border-radius: var(--radius-full); margin-bottom: 12px;
}
.cm-event-title {
  font-family: var(--font-display); font-size: clamp(1.3rem, 3.4vw, 1.7rem);
  color: var(--heading); line-height: 1.2; margin-bottom: 12px; transition: color .3s;
}
.cm-event-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.cm-event-chip {
  font-size: .76rem; font-weight: 800; padding: 5px 12px;
  background: var(--bg-alt); color: var(--text-2);
  border: 1px solid var(--border); border-radius: var(--radius-full);
  transition: color .3s, background .3s;
}
.cm-event-text {
  font-size: .9rem; font-weight: 600; color: var(--text-2);
  line-height: 1.7; margin-bottom: 18px; transition: color .3s;
}
.cm-event-text:last-child { margin-bottom: 0; }
.cm-event-ctas { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 759px) { .cm-event-ctas { margin-top: 4px; } }

/* ============================================================
   SOLD OUT

   Three signals rather than one, because a single badge is easy
   to scroll past: the card's accent turns red, a stamp replaces
   the register button, and a notice line says it in words for
   anyone who cannot see either. The Eventbrite link stays live —
   people do release tickets — but it is no longer the primary
   action; the newsletter is.
============================================================ */
.cm-event-featured.is-soldout { border-left-color: var(--red); }
.cm-event-flag.is-soldout { background: var(--red); color: #FFF; }
.cm-event-chip.is-soldout {
  background: var(--red); color: #FFF; border-color: var(--red);
}
.cm-event-notice {
  display: flex; align-items: flex-start; gap: 11px;
  background: rgba(217,48,48,.07);
  border: 1.5px solid rgba(217,48,48,.32);
  border-radius: var(--radius-md);
  padding: 13px 16px; margin-bottom: 16px;
}
.cm-event-notice-icon { font-size: 1.15rem; line-height: 1.3; flex-shrink: 0; }
.cm-event-notice p {
  font-size: .86rem; font-weight: 700; color: #A82020;
  line-height: 1.6; margin: 0;
}
.cm-event-stamp {
  align-self: center;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.15rem;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--red); white-space: nowrap;
  border: 3px solid var(--red); border-radius: var(--radius-md);
  padding: 11px 22px; margin-bottom: 6px;
  transform: rotate(-5deg);
}
/* The stamp is decoration over a message the notice already gives
   in words, so it does not need to rotate for anyone who has asked
   for less motion — but it should not fight a reduced-motion page
   either. */
@media (prefers-reduced-motion: reduce) { .cm-event-stamp { transform: none; } }

/* Past events — a dated list rather than cards, because the
   point is the record, not the sell. */
.cm-past-hd {
  font-family: var(--font-display); font-size: 1.1rem;
  color: var(--heading); margin-bottom: 18px; transition: color .3s;
}
.cm-past-list { display: flex; flex-direction: column; gap: 14px; }
.cm-past-item {
  display: grid; grid-template-columns: 1fr; gap: 6px;
  background: var(--card-bg); border-radius: var(--radius-lg);
  border: 2px solid var(--border); box-shadow: var(--shadow-sm);
  padding: 20px 22px;
}
@media (min-width: 700px) {
  .cm-past-item { grid-template-columns: 150px 1fr; gap: 24px; align-items: start; }
}
.cm-past-date {
  font-size: .8rem; font-weight: 800; color: var(--eyebrow);
  letter-spacing: .04em; text-transform: uppercase; padding-top: 2px;
}
.cm-past-title {
  font-family: var(--font-display); font-size: 1.02rem;
  color: var(--heading); margin-bottom: 6px; transition: color .3s;
}
.cm-past-text {
  font-size: .86rem; font-weight: 600; color: var(--text-2);
  line-height: 1.65; transition: color .3s;
}
.cm-past-text a { color: var(--sky); font-weight: 800; }

/* ============================================================
   WHAT WE OFFER NON-PROFITS
============================================================ */
.cm-offer-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 600px) { .cm-offer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .cm-offer-grid { grid-template-columns: repeat(3, 1fr); } }

.cm-offer-card {
  background: var(--card-bg); border-radius: var(--radius-lg); padding: 24px 20px;
  box-shadow: var(--shadow-sm); border: 2px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.cm-offer-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cm-offer-icon  { font-size: 1.7rem; margin-bottom: 10px; }
.cm-offer-title { font-family: var(--font-display); font-size: 1rem; color: var(--heading); margin-bottom: 7px; transition: color .3s; }
.cm-offer-text  { font-size: .84rem; font-weight: 600; color: var(--text-2); line-height: 1.6; transition: color .3s; }

/* ============================================================
   DONATIONS

   A record, not a sell — so it is a dated list rather than cards.
   Each row is date / who and what / value, which collapses to two
   lines on a phone rather than shrinking to nothing.
============================================================ */
.don-summary {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-bottom: 24px;
}
.don-stat {
  font-size: .78rem; font-weight: 800; padding: 6px 14px;
  background: var(--bg-alt); color: var(--text-2);
  border: 1px solid var(--border); border-radius: var(--radius-full);
  transition: color .3s, background .3s;
}

.don-list { display: flex; flex-direction: column; gap: 10px; }
.don-item {
  display: grid; gap: 6px 16px; align-items: center;
  grid-template-columns: 1fr auto;
  grid-template-areas: "when value" "body body";
  background: var(--card-bg); border: 2px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  padding: 16px 20px;
}
@media (min-width: 700px) {
  .don-item {
    grid-template-columns: 104px 1fr auto;
    grid-template-areas: "when body value";
  }
}
.don-when {
  grid-area: when;
  font-size: .74rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--eyebrow);
}
.don-body { grid-area: body; display: flex; flex-direction: column; gap: 2px; }
.don-org {
  font-size: .92rem; font-weight: 800; color: var(--heading);
  line-height: 1.35; transition: color .3s;
}
.don-what {
  font-size: .82rem; font-weight: 600; color: var(--text-2);
  line-height: 1.45; transition: color .3s;
}
.don-value {
  grid-area: value; justify-self: end;
  font-family: var(--font-display); font-size: 1.05rem;
  color: var(--sky); white-space: nowrap;
}

.don-foot {
  font-size: .86rem; font-weight: 600; color: var(--text-2);
  line-height: 1.7; margin-top: 22px; text-align: center;
}
.don-foot a { color: var(--sky); font-weight: 800; }

/* ============================================================
   HOW IT WORKS
============================================================ */
.cm-steps { display: grid; grid-template-columns: 1fr; gap: 24px; position: relative; }
@media (min-width: 700px) {
  .cm-steps { grid-template-columns: repeat(3, 1fr); }
  .cm-steps::before {
    content: '';
    position: absolute; top: 27px;
    left: calc(16.66% + 28px); right: calc(16.66% + 28px);
    height: 2px; background: var(--border); z-index: 0;
  }
}
.cm-step { text-align: center; padding: 0 12px; position: relative; z-index: 1; }
.cm-step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--navy); color: #FFF;
  font-family: var(--font-display); font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; box-shadow: var(--shadow-md);
}
.cm-step-title { font-family: var(--font-display); font-size: 1.1rem; color: var(--heading); margin-bottom: 10px; transition: color .3s; }
.cm-step-text  { font-size: .88rem; font-weight: 600; color: var(--text-2); line-height: 1.65; transition: color .3s; }

/* ============================================================
   CONTACT

   Navy section, so the .lead-status colours in main.css (tuned
   for a dark background) read correctly without overrides.
============================================================ */
.cm-contact-section { background: var(--navy); }
.cm-contact-section .eyebrow   { color: var(--yellow); }
.cm-contact-section .sec-title { color: #FFF; }
.cm-contact-section .sec-sub   { color: rgba(255,255,255,.68); }

.cm-contact-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 720px) { .cm-contact-grid { grid-template-columns: 1fr 1fr; align-items: start; gap: 56px; } }

.cm-phone {
  display: block; font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 2.6rem); color: var(--yellow);
  margin-bottom: 12px; transition: opacity .2s;
}
.cm-phone:hover { opacity: .85; }
.cm-address {
  font-size: .9rem; font-weight: 600; color: rgba(255,255,255,.6);
  line-height: 1.7; margin-bottom: 14px;
}
.cm-email-link {
  display: block; font-size: .9rem; font-weight: 800;
  color: var(--sky); margin-bottom: 8px; transition: opacity .2s;
}
.cm-email-link:hover { opacity: .8; }
.cm-contact-note {
  font-size: .84rem; font-weight: 600; color: rgba(255,255,255,.55);
  line-height: 1.7; margin-top: 18px;
}

.cm-form { display: flex; flex-direction: column; gap: 12px; }
.cm-field { display: flex; flex-direction: column; gap: 6px; }
.cm-label {
  font-size: .78rem; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; color: rgba(255,255,255,.62);
}
.cm-input, .cm-textarea, .cm-select {
  width: 100%; padding: 13px 16px;
  background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.18);
  border-radius: var(--radius-md); color: #FFF;
  font-family: var(--font-body); font-size: .93rem; font-weight: 600;
  transition: border-color .2s, background .2s;
}
.cm-input::placeholder, .cm-textarea::placeholder { color: rgba(255,255,255,.38); }
.cm-input:focus, .cm-textarea:focus, .cm-select:focus {
  outline: none; border-color: var(--sky); background: rgba(255,255,255,.12);
}
.cm-textarea { resize: vertical; min-height: 110px; }
/* The options are drawn by the OS, which does not inherit the
   translucent white above — give them a solid navy of their own. */
.cm-select option { background: var(--navy-dark); color: #FFF; }
