/* =============================================================
   community.css — Community Commitment page
   Lives in assets/css/. Requires base.css + nav-footer.css.
   ============================================================= */

/* ── Hero ─────────────────────────────────────────────────────── */
.cc-hero {
  padding-top: calc(var(--topbar-h) + var(--nav-h) + 5rem);
  padding-bottom: 5.5rem;
  position: relative;
  overflow: hidden;
  background: var(--slate);
  text-align: center;
}
.cc-hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.cc-blob {
  position: absolute;
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
}
.cc-blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(107,143,113,0.2) 0%, transparent 65%);
  top: -150px; right: -150px;
  animation: morphBlob 14s ease-in-out infinite alternate;
}
.cc-blob-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(74,144,196,0.15) 0%, transparent 65%);
  bottom: -100px; left: -100px;
  animation: morphBlob 10s 2s ease-in-out infinite alternate-reverse;
}
.cc-blob-3 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(232,93,122,0.1) 0%, transparent 65%);
  top: 40%; left: 20%;
}
.cc-hero-inner { position: relative; z-index: 1; }

.cc-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.5vw, 4rem);
  line-height: 1.06;
  color: var(--white);
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
}
.cc-h1 em { font-style: italic; color: var(--warm); }

.cc-sub {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,0.65);
  max-width: 56ch;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

/* Hero stats strip */
.cc-stats {
  display: inline-flex;
  align-items: center;
  gap: 3rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-md);
  padding: 1.75rem 3rem;
}
.cc-stat { text-align: center; }
.cc-stat-n {
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
  display: block;
  min-width: 4ch;
}
.cc-stat-l {
  font-size: 0.76rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.3rem;
  display: block;
}
.cc-stat-div {
  width: 1px;
  height: 52px;
  background: rgba(255,255,255,0.1);
}

/* ── Intro ────────────────────────────────────────────────────── */
.cc-intro {
  padding: 7rem 0;
  background: var(--off-white);
}
.cc-intro-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.cc-locations {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.cc-loc-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--white);
  border: 1px solid rgba(107,143,113,0.15);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--slate-mid);
  box-shadow: 0 2px 8px rgba(44,62,53,0.05);
}
.cc-loc-pill svg { width: 12px; height: 12px; color: var(--sage); }
.cc-loc-more {
  background: var(--sage-pale);
  border-color: var(--sage-light);
  color: var(--sage-dark);
  font-weight: 600;
}

/* ── Programs ─────────────────────────────────────────────────── */
.cc-programs {
  padding: 7rem 0;
  background: var(--white);
}
.cc-programs-hdr { text-align: center; margin-bottom: 4rem; }

.cc-programs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.cc-program-card {
  background: var(--off-white);
  border-radius: var(--r-md);
  border: 1px solid rgba(107,143,113,0.1);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: box-shadow 0.3s, transform 0.3s;
}
.cc-program-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.cc-program-icon {
  width: 56px; height: 56px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.cc-program-icon svg { width: 26px; height: 26px; }

.cc-program-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 50px;
  padding: 0.22rem 0.75rem;
  width: fit-content;
}
.cc-program-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--slate);
  line-height: 1.1;
}
.cc-program-desc {
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-muted);
}
.cc-program-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}
.cc-program-list li {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  padding-left: 1.1rem;
  position: relative;
}
.cc-program-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--pc, var(--sage));
}
.cc-program-impact {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate-mid);
  background: var(--white);
  border: 1px solid rgba(107,143,113,0.15);
  border-radius: 50px;
  padding: 0.4rem 0.9rem;
  width: fit-content;
  margin-top: 0.25rem;
}
.cc-brochure-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sage-dark);
  background: var(--sage-pale);
  border: 1px solid rgba(107,143,113,0.2);
  border-radius: 50px;
  padding: 0.5rem 1.1rem;
  text-decoration: none;
  width: fit-content;
  transition: background 0.2s, box-shadow 0.2s;
  margin-top: 0.25rem;
}
.cc-brochure-btn:hover {
  background: #d4e8d6;
  box-shadow: 0 2px 12px rgba(107,143,113,0.2);
}

/* ── Journey / Timeline ───────────────────────────────────────── */
.cc-journey {
  padding: 7rem 0;
  background: var(--off-white);
}
.cc-journey-hdr { text-align: center; margin-bottom: 4rem; }

.cc-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  position: relative;
}
.cc-timeline::before {
  content: '';
  position: absolute;
  top: 20px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 2px;
  background: linear-gradient(to right, #4A90C4, #F5C842, #E85D7A, #6B8F71);
  opacity: 0.25;
  z-index: 0;
}
.cc-timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.cc-tl-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px currentColor;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.cc-tl-card {
  background: var(--white);
  border-radius: var(--r-md);
  border: 1px solid rgba(107,143,113,0.1);
  padding: 1.5rem;
  text-align: center;
  width: 100%;
  transition: box-shadow 0.25s, transform 0.25s;
}
.cc-tl-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.cc-tl-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  margin: 0 auto 0.75rem;
}
.cc-tl-icon svg { width: 20px; height: 20px; }
.cc-tl-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--slate);
  margin-bottom: 0.5rem;
}
.cc-tl-card p {
  font-size: 0.83rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ── Collaborate ──────────────────────────────────────────────── */
.cc-collaborate {
  padding: 7rem 0;
  background: var(--white);
}
.cc-collab-hdr { text-align: center; margin-bottom: 4rem; }

.cc-collab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

/* Video card */
.cc-video-card {
  background: var(--off-white);
  border-radius: var(--r-md);
  border: 1px solid rgba(107,143,113,0.1);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}
.cc-video-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--slate);
  margin-bottom: 0.4rem;
}
.cc-video-card > p {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.cc-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--slate);
  margin-bottom: 1rem;
}
.cc-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: none;
}
.cc-video-footer {
  font-size: 0.8rem;
  font-weight: 300;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Socials card */
.cc-socials-card {
  background: var(--off-white);
  border-radius: var(--r-md);
  border: 1px solid rgba(107,143,113,0.1);
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.cc-socials-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-mid);
  white-space: nowrap;
}
.cc-socials-btns {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.cc-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.83rem;
  font-weight: 600;
  border-radius: 50px;
  padding: 0.5rem 1.1rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
}
.cc-social-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.cc-social-instagram {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: var(--white);
}
.cc-social-linkedin { background: #0077B5; color: var(--white); }

/* Form card */
.cc-form-card {
  background: var(--off-white);
  border-radius: var(--r-md);
  border: 1px solid rgba(107,143,113,0.1);
  padding: 2.25rem;
}
.cc-form-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--slate);
  margin-bottom: 0.4rem;
}
.cc-form-card > p {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.75rem;
}
.cc-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.cc-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.cc-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate-mid);
  letter-spacing: 0.02em;
}
.cc-field input,
.cc-field textarea {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-body);
  background: var(--white);
  border: 1px solid rgba(107,143,113,0.2);
  border-radius: var(--r-sm);
  padding: 0.7rem 0.9rem;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.cc-field input:focus,
.cc-field textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(107,143,113,0.12);
}
.cc-field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.cc-submit {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white);
  background: var(--warm);
  border: none;
  border-radius: 50px;
  padding: 0.85rem 1.75rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-btn);
  margin-top: 0.25rem;
}
.cc-submit:hover {
  background: #b56a3a;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(201,123,75,0.4);
}

/* ── CTA (shared) ─────────────────────────────────────────────── */
.cta-sec {
  padding: 7rem 0;
  background: linear-gradient(135deg, var(--warm) 0%, #a85e30 100%);
  position: relative; overflow: hidden;
}
.cta-sec::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.cta-inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.cta-inner .sec-h    { color: var(--white); }
.cta-inner .sec-h em { color: rgba(255,255,255,0.75); }
.cta-inner > p { font-size: 1rem; font-weight: 300; color: rgba(255,255,255,0.8); max-width: 46ch; line-height: 1.7; }
.cta-dots { display: flex; align-items: center; gap: 8px; }
.cta-dot  { width: 10px; height: 10px; border-radius: 50%; opacity: 0.75; }
.cta-acts { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.btn-cw {
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
  color: var(--warm); background: var(--white); border: none; cursor: pointer;
  padding: 0.9rem 2.2rem; border-radius: 50px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}
.btn-cw:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.2); }
.btn-co {
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 500;
  color: var(--white); background: transparent;
  border: 2px solid rgba(255,255,255,0.45); cursor: pointer;
  padding: 0.88rem 2rem; border-radius: 50px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: border-color 0.2s, background 0.2s;
}
.btn-co:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .cc-timeline { grid-template-columns: repeat(2, 1fr); }
  .cc-timeline::before { display: none; }
}
@media (max-width: 860px) {
  .cc-intro-inner  { grid-template-columns: 1fr; gap: 2.5rem; }
  .cc-programs-grid { grid-template-columns: 1fr; }
  .cc-collab-grid  { grid-template-columns: 1fr; }
  .cc-stats        { flex-direction: column; gap: 1.25rem; padding: 1.5rem 2rem; }
  .cc-stat-div     { width: 60px; height: 1px; }
}
@media (max-width: 640px) {
  .cc-timeline     { grid-template-columns: 1fr; }
  .cta-acts        { flex-direction: column; }
  .cc-socials-card { flex-direction: column; align-items: flex-start; gap: 1rem; }
}