/* ==========================================================================
   Help The Poor Initiative — Volunteer page
   Page-specific only. Tokens, header, footer, page banner, form controls,
   accordion and the CTA band all come from css/style.css.
   ========================================================================== */

/* The volunteer banner photo is much brighter than the others (sunset sky),
   so it needs a heavier veil to keep white text legible. */
.page-hero--bright .page-hero-veil {
  background:
    radial-gradient(120% 140% at 15% 0%, rgba(42, 122, 52, .42) 0%, transparent 60%),
    linear-gradient(160deg, rgba(30, 92, 38, .86) 0%, rgba(18, 58, 25, .93) 78%);
}

/* --------------------------------------------------------------------------
   1. Why volunteer
   -------------------------------------------------------------------------- */
.why { padding: 78px 0 20px; }

.why-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 54px;
  align-items: center;
}

.why-lede {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2vw, 1.4rem);
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
}

.why-copy p { margin-top: 16px; line-height: 1.8; }

.why-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.why-stat {
  padding: 24px 22px;
  border-radius: var(--radius);
  background: var(--surface-alt);
  border: 1px solid var(--line);
}

.why-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}

.why-stat span {
  display: block;
  margin-top: 6px;
  font-size: .875rem;
  line-height: 1.5;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   2. Roles
   -------------------------------------------------------------------------- */
.roles { padding: 78px 0; }

.role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.role {
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease),
              border-color var(--speed) var(--ease);
}

.role:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent, var(--green)) 40%, var(--line));
  box-shadow: var(--shadow-md);
}

.role-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 16px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--accent, var(--green)) 12%, #fff);
  color: var(--accent, var(--green));
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1);
}

.role:hover .role-icon { transform: scale(1.09) rotate(-6deg); }

.role h3 {
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink);
}

.role-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 13px;
}

.role-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--muted);
}

.role-tag svg { flex: none; opacity: .7; }

.role p {
  font-size: .9375rem;
  line-height: 1.7;
  color: var(--muted);
}

.role-points {
  margin-top: 14px;
  display: grid;
  gap: 8px;
  flex: 1;
}

.role-points li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: .875rem;
  line-height: 1.55;
  color: var(--muted);
}

.role-points svg { flex: none; margin-top: 3px; color: var(--accent, var(--green)); }

.role-apply {
  margin-top: 20px;
  align-self: flex-start;
  padding: 10px 20px;
  font-size: .75rem;
  background: transparent;
  color: var(--accent, var(--green));
  box-shadow: inset 0 0 0 1.6px color-mix(in srgb, var(--accent, var(--green)) 42%, transparent);
}

.role-apply:hover {
  background: var(--accent, var(--green));
  color: #fff;
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   3. How it works
   -------------------------------------------------------------------------- */
.howto { padding: 78px 0; background: var(--surface-alt); }

.howto-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}

.howto-card {
  position: relative;
  padding: 30px 24px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease);
}

.howto-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.howto-card::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  color: color-mix(in srgb, var(--green) 26%, #fff);
}

.howto-card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
}

.howto-card p {
  margin-top: 9px;
  font-size: .9375rem;
  line-height: 1.68;
  color: var(--muted);
}

.howto-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 46px;
  right: -13px;
  width: 26px;
  height: 1.5px;
  background: var(--line);
}

/* --------------------------------------------------------------------------
   4. Application form
   -------------------------------------------------------------------------- */
.apply {
  padding: 84px 0;
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.apply-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 1fr;
  gap: 44px;
  align-items: start;
}

.apply-card {
  padding: clamp(24px, 3.4vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.apply-intro { margin-bottom: 26px; }

.apply-intro h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--ink);
}

.apply-intro p {
  margin-top: 10px;
  line-height: 1.72;
  color: var(--muted);
}

/* Role checkbox grid inside the form */
.role-picks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.pick {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: .875rem;
  line-height: 1.4;
  color: var(--muted);
  transition: all var(--speed) var(--ease);
}

.pick input {
  flex: none;
  width: 18px;
  height: 18px;
  accent-color: var(--green);
  cursor: pointer;
}

.pick:hover { border-color: color-mix(in srgb, var(--green) 45%, var(--line)); }

.pick:has(input:checked) {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
  font-weight: 600;
}

.pick:has(input:focus-visible) {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.65;
}

.apply-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.apply-required { font-size: .8125rem; color: var(--muted); }

.form-status {
  min-height: 22px;
  margin-top: 14px;
  font-size: .9375rem;
  font-weight: 500;
}

.form-status.is-ok    { color: var(--green); }
.form-status.is-error { color: var(--red); }

/* --------------------------------------------------------------------------
   5. Sidebar
   -------------------------------------------------------------------------- */
.apply-side { display: grid; gap: 20px; }

.side-card {
  padding: 28px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}

.side-card h3 {
  font-size: .8125rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}

.check-list { display: grid; gap: 12px; }

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: .9375rem;
  line-height: 1.62;
  color: var(--muted);
}

.check-list svg { flex: none; margin-top: 3px; color: var(--green); }

/* Testimonial */
.side-card--quote {
  background: linear-gradient(155deg, var(--green) 0%, var(--green-deep) 90%);
  border-color: transparent;
  color: rgba(255, 255, 255, .86);
}

.side-card--quote h3 { color: var(--orange-warm); }

.side-quote {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-style: italic;
  line-height: 1.65;
}

.side-quote-by {
  display: block;
  margin-top: 14px;
  font-family: var(--font-body);
  font-size: .8125rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}

/* --------------------------------------------------------------------------
   6. FAQ
   -------------------------------------------------------------------------- */
.vol-faq { padding: 0 0 84px; }
.vol-faq-wrap { max-width: 800px; margin-inline: auto; }
.vol-faq-head { text-align: center; margin-bottom: 34px; }

/* --------------------------------------------------------------------------
   7. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .role-grid { grid-template-columns: repeat(2, 1fr); }
  .howto-grid { grid-template-columns: repeat(2, 1fr); }
  .howto-card:nth-child(2)::after { display: none; }
  .apply-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 992px) {
  .why-grid { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 768px) {
  .why { padding: 54px 0 12px; }
  .roles, .howto, .apply { padding: 58px 0; }
  .vol-faq { padding-bottom: 58px; }
  .role-grid { grid-template-columns: 1fr; }
  .howto-card::after { display: none; }
  .apply-foot { flex-direction: column; align-items: stretch; }
  .apply-foot .btn { width: 100%; }
}

@media (max-width: 560px) {
  .why-stats { grid-template-columns: 1fr; }
  .howto-grid { grid-template-columns: 1fr; }
  .role-picks { grid-template-columns: 1fr; }
}
