/* Volunteer page: warm, hopeful and hands-on.
   Sunny colours, rounded shapes, handwritten notes and taped-up snapshots. */

.vol {
  --bg: #fbf5ea;
  --surface: #ffffff;
  --ink: #1f3b2d;
  --muted: #55695d;
  --line: rgba(31, 59, 45, 0.15);
  --sun: #f4b942;
  --leaf: #7fb069;
  --clay: #e07a5f;
  --sun-soft: #fce6b3;
  --leaf-soft: #dcedcf;
  --clay-soft: #f8d7cc;
  --hand: "Caveat", "Comic Sans MS", cursive;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --max: 76rem;
  /* Side padding that keeps content inside --max while backgrounds run full width */
  --inline: max(var(--gutter), calc((100% - var(--max)) / 2));
  /* Camera icon for the empty photo boxes */
  --photo-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f3b2d' stroke-opacity='0.35' stroke-width='1.5' stroke-linejoin='round'%3E%3Crect x='2.5' y='6.5' width='19' height='13.5' rx='3'/%3E%3Ccircle cx='12' cy='13' r='3.75'/%3E%3Cpath d='M8.5 6.5 10 4h4l1.5 2.5'/%3E%3C/svg%3E");

  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.1875rem;
  line-height: 1.5;
}

.vol main {
  overflow-x: clip;
}

.vol svg:not(.vol-help__wave) {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Handwritten accent words */
.vol-hand {
  display: inline-block;
  font-family: var(--hand);
  font-size: 1.15em;
  font-weight: 700;
  line-height: 1;
  color: var(--clay);
  transform: rotate(-2deg);
}

.vol-tag {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  background: var(--leaf-soft);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Chunky, friendly buttons with a hard shadow ---------- */

.vol-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--sun);
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vol-button:hover {
  box-shadow: 6px 6px 0 var(--ink);
  transform: translate(-2px, -2px);
}

.vol-button:active {
  box-shadow: 2px 2px 0 var(--ink);
  transform: translate(2px, 2px);
}

.vol-button--small {
  padding: 0.5rem 1.125rem;
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 0.9375rem;
}

.vol-button--dark {
  background: var(--ink);
  box-shadow: 4px 4px 0 var(--surface);
  color: var(--surface);
}

.vol-button--dark:hover {
  box-shadow: 6px 6px 0 var(--surface);
}

.vol-link {
  color: inherit;
  font-weight: 700;
  text-decoration: underline wavy var(--clay);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}

/* ---------- Floating pill nav ---------- */

.vol-nav {
  position: sticky;
  top: 1rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 1rem var(--inline) 0;
  padding: 0.5rem 0.5rem 0.5rem 1.5rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.vol-nav__name {
  font-size: 1.375rem;
  font-weight: 700;
  color: inherit;
  text-decoration: none;
}

.vol-nav nav {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
}

.vol-nav nav a {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.vol-nav nav a:hover {
  color: var(--ink);
}

/* ---------- Intro ---------- */

.vol-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(3rem, 7vw, 5rem) var(--inline);
}

.vol-hero__title {
  margin: 1.25rem 0 1.5rem;
  font-size: clamp(2.75rem, 5.8vw, 5rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

/* Hand-drawn underline that draws itself in */
.vol-scribble {
  position: relative;
  white-space: nowrap;
}

.vol-scribble svg {
  position: absolute;
  left: 0;
  bottom: -0.14em;
  width: 100%;
  height: 0.3em;
  overflow: visible;
  color: var(--clay);
}

.vol-scribble path {
  stroke-width: 3.5;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.1s 0.4s var(--ease) forwards;
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

.vol-hero__intro {
  max-width: 32em;
  color: var(--muted);
  font-size: 1.25rem;
}

.vol-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.25rem;
}

/* ---------- Snapshots (used in the intro collage and the Moments wall) ---------- */

.vol-polaroid {
  position: relative;
  padding: 0.75rem 0.75rem 0;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(31, 59, 45, 0.14), 0 2px 6px rgba(31, 59, 45, 0.08);
}

/* A strip of tape holding each snapshot up */
.vol-polaroid::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -0.75rem;
  left: 50%;
  width: 5.5rem;
  height: 1.5rem;
  background: rgba(244, 185, 66, 0.55);
  transform: translateX(-50%) rotate(-3deg);
}

.vol-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--leaf-soft) var(--photo-glyph) center / 22% no-repeat;
}

.vol-polaroid figcaption {
  padding: 0.5rem 0 0.75rem;
  font-family: var(--hand);
  font-size: 1.375rem;
  line-height: 1.2;
  text-align: center;
}

.vol-collage {
  position: relative;
  min-height: 34rem;
}

.vol-collage .vol-polaroid {
  position: absolute;
}

.vol-polaroid--1 {
  z-index: 2;
  top: 0;
  left: 0;
  width: 56%;
  transform: rotate(-4deg);
}

.vol-polaroid--2 {
  z-index: 1;
  top: 6%;
  right: 0;
  width: 40%;
  transform: rotate(5deg);
}

.vol-polaroid--2 .vol-photo {
  background-color: var(--sun-soft);
}

.vol-polaroid--3 {
  z-index: 3;
  left: 46%;
  bottom: 0;
  width: 38%;
  transform: rotate(-1.5deg);
}

.vol-polaroid--3 .vol-photo {
  background-color: var(--clay-soft);
}

.vol-note {
  position: absolute;
  left: 2%;
  bottom: 6%;
  font-family: var(--hand);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--clay);
  transform: rotate(-6deg);
}

/* ---------- Numbers ---------- */

.vol-impact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 0 var(--inline) clamp(2rem, 5vw, 4rem);
}

.vol-stat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.75rem;
  border-radius: 1.5rem;
}

.vol-stat--sun  { background: var(--sun-soft); }
.vol-stat--leaf { background: var(--leaf-soft); }
.vol-stat--clay { background: var(--clay-soft); }

.vol-stat svg {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 2rem;
  height: 2rem;
}

.vol-stat__num {
  font-size: clamp(2.75rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.vol-stat__label {
  color: var(--muted);
  font-size: 1.125rem;
}

/* ---------- Sections ---------- */

.vol-section {
  padding: clamp(4rem, 9vw, 7rem) var(--inline);
}

.vol-head {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.vol-title {
  margin-top: 1rem;
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* ---------- Cause cards ---------- */

.vol-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  list-style: none;
  padding: 0;
}

.vol-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border: 2px solid var(--ink);
  border-radius: 1.5rem;
  background: var(--surface);
  box-shadow: 6px 6px 0 var(--tint);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.vol-card:hover {
  box-shadow: 9px 9px 0 var(--tint);
  transform: translate(-3px, -3px) rotate(-0.5deg);
}

.vol-card--sun  { --tint: var(--sun);  --tint-soft: var(--sun-soft); }
.vol-card--leaf { --tint: var(--leaf); --tint-soft: var(--leaf-soft); }
.vol-card--clay { --tint: var(--clay); --tint-soft: var(--clay-soft); }

.vol-card__icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--tint-soft);
}

.vol-card__icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.vol-card__years {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.vol-card__org {
  margin-top: 0.375rem;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.05;
}

.vol-card__role {
  font-family: var(--hand);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--clay);
}

.vol-card__desc {
  flex: 1;
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 1.0625rem;
}

.vol-card__link {
  align-self: flex-start;
  margin-top: 1.25rem;
  color: inherit;
  font-weight: 700;
  text-decoration: underline wavy var(--tint);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}

/* ---------- Why I give: a speech bubble ---------- */

.vol-why {
  padding: clamp(1rem, 4vw, 3rem) var(--inline);
}

.vol-why blockquote {
  max-width: 52rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  border-radius: 2.5rem 2.5rem 2.5rem 0.5rem;
  background: var(--leaf-soft);
  text-align: center;
}

.vol-why p {
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
}

.vol-why footer {
  margin-top: 1.25rem;
  font-family: var(--hand);
  font-size: 2rem;
  font-weight: 700;
  color: var(--clay);
}

/* ---------- Moments wall ---------- */

.vol-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.vol-wall .vol-polaroid {
  transition: transform 0.4s var(--ease);
}

.vol-wall .vol-polaroid:nth-child(3n + 1) { transform: rotate(-2.5deg); }
.vol-wall .vol-polaroid:nth-child(3n + 2) { transform: rotate(1.5deg) translateY(1rem); }
.vol-wall .vol-polaroid:nth-child(3n)     { transform: rotate(-1deg); }

.vol-wall .vol-polaroid:nth-child(even) .vol-photo { background-color: var(--sun-soft); }
.vol-wall .vol-polaroid:nth-child(3n) .vol-photo   { background-color: var(--clay-soft); }

.vol-wall .vol-polaroid:hover {
  z-index: 2;
  transform: rotate(0) scale(1.03);
}

/* ---------- Get involved ---------- */

.vol-help {
  position: relative;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: clamp(3.5rem, 8vw, 6rem) var(--inline) clamp(4rem, 9vw, 7rem);
  background: var(--sun);
  text-align: center;
}

.vol-help__wave {
  position: absolute;
  left: 0;
  bottom: calc(100% - 1px);
  width: 100%;
  height: clamp(2rem, 5vw, 4rem);
  fill: var(--sun);
}

.vol-help__title {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.vol-help__title .vol-hand {
  color: var(--ink);
}

.vol-help p {
  max-width: 30em;
  margin: 1.5rem auto 2.25rem;
  font-size: 1.25rem;
}

/* ---------- Footer ---------- */

.vol-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.75rem var(--inline) 2.25rem;
  border-top: 2px solid var(--ink);
  background: var(--sun);
  font-weight: 600;
}

.vol-footer nav {
  display: flex;
  gap: 1.5rem;
}

.vol-footer a {
  color: inherit;
  text-decoration: none;
}

.vol-footer a:hover {
  text-decoration: underline wavy;
  text-underline-offset: 0.3em;
}

/* ---------- Phones and small tablets ---------- */

@media (max-width: 860px) {
  .vol-nav nav {
    display: none;
  }

  .vol-nav {
    justify-content: space-between;
  }

  .vol-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .vol-collage {
    min-height: 24rem;
    margin-top: 1rem;
  }

  .vol-impact,
  .vol-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .vol-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .vol-polaroid figcaption {
    font-size: 1.125rem;
  }

  .vol-polaroid--3 {
    left: 50%;
  }

  .vol-note {
    font-size: 1.375rem;
  }
}
