/* =============================================================================
   COMPONENTS  —  buttons, headings, cards, waves, forms
   ========================================================================== */

/* -----------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.82rem 1.6rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
  transition: background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur-fast) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 17px; height: 17px; stroke-width: 2; }

.btn--primary {
  background: var(--green-700);
  border-color: var(--green-700);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--green-500);
  border-color: var(--green-500);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn--accent {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--on-accent);
  box-shadow: var(--shadow-sm);
}
.btn--accent:hover {
  background: var(--gold-600);
  border-color: var(--gold-600);
  color: var(--on-accent);
  box-shadow: var(--shadow);
}

.btn--outline {
  background: transparent;
  border-color: var(--green-600);
  color: var(--green-600);
}
.btn--outline:hover {
  background: var(--green-600);
  color: #fff;
}

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}
.btn--ghost-light:hover {
  background: #fff;
  border-color: #fff;
  color: var(--green-700);
}

.btn--sm  { padding: 0.6rem 1.15rem; font-size: 0.76rem; }
.btn--lg  { padding: 1rem 2rem; font-size: 0.88rem; }
.btn--block { display: flex; width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}
.btn-row--center { justify-content: center; }

/* Small uppercase text link with arrow — "GET INVOLVED →" */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-family: var(--font-head);
  font-size: 0.755rem;
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--green-600);
}
.link-arrow .icon { width: 15px; height: 15px; transition: transform var(--dur) var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow--gold { color: var(--gold-600); }
.link-arrow--gold:hover { color: var(--gold-700); }

/* -----------------------------------------------------------------------------
   SECTION HEADING  —  green caps + short gold underline
   -------------------------------------------------------------------------- */
.section-head {
  max-width: 760px;
  margin: 0 auto var(--space-7);
  text-align: center;
}
.section-head--left { margin-inline: 0; text-align: left; }

.section-head__eyebrow {
  display: block;
  margin-bottom: var(--space-2);
  font-family: var(--font-head);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-600);
}

.section-head__title {
  margin: 0;
  font-size: var(--fs-h2);
  font-weight: 800;
  letter-spacing: 0.012em;
  text-transform: uppercase;
  color: var(--green-600);
}
.section-head__title .accent { color: var(--gold-500); }

.section-head__rule {
  width: 56px;
  height: 3px;
  margin: var(--space-4) auto var(--space-4);
  background: var(--gold-500);
  border-radius: 2px;
}
.section-head--left .section-head__rule { margin-inline: 0; }

.section-head__sub {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--ink-muted);
}

/* Light-on-dark variant */
.on-dark .section-head__title { color: #fff; }
.on-dark .section-head__sub   { color: rgba(255, 255, 255, 0.85); }

/* -----------------------------------------------------------------------------
   THE CURVED WAVE  (hero bottom / band tops)
   -------------------------------------------------------------------------- */
.wave {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  line-height: 0;
  pointer-events: none;
  z-index: 3;
}
.wave--bottom { bottom: -1px; }
.wave--top    { top: -1px; transform: scaleY(-1); }
.wave svg {
  display: block;
  width: 100%;
  height: clamp(46px, 6.2vw, 92px);
}
/* The ribbon's colour comes from the gradient stops below, so no fill rule is
   set on .wave__ribbon itself — a CSS fill would override the gradient. */
.wave__stop--green { stop-color: var(--green-500); }
.wave__stop--gold  { stop-color: var(--gold-500); }

.wave__ribbon--gold  { fill: var(--gold-500); }
.wave__ribbon--green { fill: var(--green-500); }

.wave__base { fill: var(--surface); }
.wave--tint .wave__base { fill: var(--green-tint); }

/* -----------------------------------------------------------------------------
   CARDS
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card--hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card--plain { background: var(--surface); }

/* Icon in a filled circle -------------------------------------------------- */
.icon-badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--green-600);
  color: #fff;
}
.icon-badge .icon { width: 28px; height: 28px; stroke-width: 1.9; }
.icon-badge--gold  { background: var(--gold-500); color: #fff; }
.icon-badge--soft  { background: var(--green-100); color: var(--green-600); }
.icon-badge--sm    { width: 46px; height: 46px; }
.icon-badge--sm .icon { width: 21px; height: 21px; }

/* Assignment card — badge on the left, text on the right ------------------- */
.card-feature {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
}
.card-feature__title {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--green-600);
}
.card-feature--gold .card-feature__title { color: var(--gold-600); }
.card-feature__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.62;
  color: var(--ink-muted);
}

/* Get-involved card — badge on top, arrow link at the bottom --------------- */
.card-action { gap: var(--space-4); }
.card-action__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-4);
  align-items: center;
}
.card-action__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: var(--green-600);
}
.card-action--gold .card-action__title { color: var(--gold-600); }
.card-action__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.62;
  color: var(--ink-muted);
  flex: 1;
}
.card-action__foot {
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-soft);
}

/* Simple value chip card (About core values) ------------------------------ */
.card-value {
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-4);
  text-align: center;
}
.card-value__title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-600);
}

/* Photo tile -------------------------------------------------------------- */
.photo {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--green-tint);
  box-shadow: var(--shadow-sm);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.photo--4x3 { aspect-ratio: 4 / 3; }
.photo--16x9 { aspect-ratio: 16 / 9; }
.photo--1x1 { aspect-ratio: 1 / 1; }
.photo--3x4 { aspect-ratio: 3 / 4; }
.photo:hover img { transform: scale(1.06); }

.photo__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.9rem 1rem 0.85rem;
  background: linear-gradient(to top, rgba(9, 46, 24, 0.88), transparent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
}

/* -----------------------------------------------------------------------------
   SCRIPTURE / QUOTE CALL-OUT
   -------------------------------------------------------------------------- */
.quote {
  position: relative;
  padding: var(--space-5) var(--space-5) var(--space-5) calc(var(--space-5) + 6px);
  background: var(--green-tint);
  border-left: 4px solid var(--gold-500);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.quote__text {
  margin: 0 0 var(--space-2);
  font-size: 1.02rem;
  font-style: italic;
  line-height: 1.65;
  color: var(--ink-strong);
}
.quote__cite {
  display: block;
  font-family: var(--font-head);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  font-style: normal;
  color: var(--green-600);
}

/* -----------------------------------------------------------------------------
   TICK LIST
   -------------------------------------------------------------------------- */
.tick-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}
.tick-list li {
  position: relative;
  margin: 0;
  padding-left: 2rem;
  font-size: 0.95rem;
  color: var(--ink-muted);
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.34em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.tick-list--gold li::before { background-color: var(--gold-500); }
.tick-list--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-5); }

/* -----------------------------------------------------------------------------
   NUMBERED LIST (Principal Activities)
   -------------------------------------------------------------------------- */
.num-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-4);
  counter-reset: n;
}
.num-list li {
  position: relative;
  margin: 0;
  padding: var(--space-4) var(--space-5) var(--space-4) 4.1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--ink-muted);
  counter-increment: n;
}
.num-list li::before {
  content: counter(n, decimal-leading-zero);
  position: absolute;
  left: var(--space-5);
  top: var(--space-4);
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gold-500);
}

/* -----------------------------------------------------------------------------
   CTA BAND  —  dark green over a faded photo
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--green-700);
  color: #fff;
  isolation: isolate;
}
.cta-band__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.cta-band__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(11, 72, 31, 0.96) 0%, rgba(14, 81, 36, 0.9) 55%, rgba(19, 122, 51, 0.82) 100%);
}
.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: clamp(2.5rem, 1.5rem + 3vw, 3.75rem);
}
.cta-band__text {
  position: relative;
  padding-left: var(--space-5);
  flex: 1 1 420px;
}
.cta-band__text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 3px;
  background: var(--gold-500);
  border-radius: 2px;
}
.cta-band__title {
  margin: 0;
  font-size: clamp(1.4rem, 1rem + 1.7vw, 2.2rem);
  font-weight: 800;
  line-height: 1.16;
  text-transform: uppercase;
  color: #fff;
}
.cta-band__title .accent { color: var(--gold-500); display: block; }
.cta-band__sub {
  margin: var(--space-3) 0 0;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.86);
}

/* -----------------------------------------------------------------------------
   FORMS
   -------------------------------------------------------------------------- */
.form { display: grid; gap: var(--space-4); }

.field { display: grid; gap: 0.4rem; }
.field--half { grid-column: span 1; }

.field label {
  font-family: var(--font-head);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-strong);
}
.field label .req { color: var(--error); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.78rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6B60' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(19, 122, 51, 0.14);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-faint); }

.field--error input,
.field--error select,
.field--error textarea { border-color: var(--error); }
.field__error {
  font-size: 0.78rem;
  color: var(--error);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.checks { display: grid; gap: var(--space-2); }
.check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--ink-muted);
  cursor: pointer;
}
.check input {
  width: 18px; height: 18px;
  margin-top: 0.22em;
  accent-color: var(--green-600);
  flex: none;
}

/* Honeypot — hidden from people, visible to bots */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form__note {
  font-size: 0.8rem;
  color: var(--ink-faint);
}

/* Form status message ----------------------------------------------------- */
.alert {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: var(--space-4);
  border-radius: var(--radius);
  font-size: 0.92rem;
  border: 1px solid transparent;
}
.alert .icon { width: 20px; height: 20px; margin-top: 0.1em; }
.alert--success {
  background: var(--success-tint);
  border-color: #BFE0CC;
  color: #14522C;
}
.alert--error {
  background: var(--error-tint);
  border-color: #F2C4C0;
  color: #8A1D17;
}
.alert__title { font-weight: 700; display: block; margin-bottom: 0.15rem; }

/* Form card wrapper ------------------------------------------------------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 1rem + 1.6vw, 2.4rem);
  box-shadow: var(--shadow);
}

/* -----------------------------------------------------------------------------
   FLOATING WHATSAPP BUTTON
   -------------------------------------------------------------------------- */
.wa-float {
  position: fixed;
  right: clamp(0.9rem, 2vw, 1.5rem);
  bottom: clamp(0.9rem, 2vw, 1.5rem);
  z-index: var(--z-float);
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.42);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.wa-float:hover {
  transform: scale(1.08);
  color: #fff;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.5);
}
.wa-float .icon { width: 28px; height: 28px; fill: currentColor; stroke: none; }

/* ---- Form footer & wrapper ---------------------------------------------- */
.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-2);
}
.form__foot .form__note { flex: 1 1 200px; margin: 0; }

.form-status { margin: 0; font-size: 0.88rem; min-height: 1em; }
.form-status.is-ok    { color: var(--success); font-weight: 600; }
.form-status.is-error { color: var(--error); font-weight: 600; }

.form-wrap { max-width: 820px; margin-inline: auto; }

.btn[disabled], .btn.is-busy { opacity: 0.65; cursor: progress; transform: none; }
