/*home.css*/

.home-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  color: var(--color-ink);
  line-height: 1.75;
}

.home-hero {
  position: relative;
  min-height: clamp(520px, calc(100vh - 72px), 780px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  background: var(--color-walnut);
}

.home-hero-image,
.home-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-hero-picture {
  display: contents;
}

.home-hero-image {
  object-fit: cover;
  object-position: center 48%;
  z-index: -2;
}

.home-hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(30, 18, 12, .88) 0%, rgba(30, 18, 12, .55) 50%, rgba(30, 18, 12, .15) 100%),
    linear-gradient(0deg, rgba(30, 18, 12, .72) 0%, transparent 55%);
}

.home-hero-content {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(64px, 10vw, 120px) 0;
  color: #fffaf0;
}

.home-hero-title {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: .98;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.home-hero-lead {
  max-width: 660px;
  margin: 24px 0 0;
  color: rgba(255, 246, 230, .9);
  font-size: clamp(1.05rem, 2vw, 1.28rem) !important;
  line-height: 1.6;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.home-hero-primary,
.home-hero-secondary {
  padding: 12px 20px;
  border: 1px solid rgba(243, 227, 195, .85);
  border-radius: 999px;
  color: var(--color-cream);
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}

.home-hero-primary { background: var(--color-cream); color: var(--color-walnut); }
.home-hero-secondary { background: rgba(42, 28, 20, .45); }
.home-hero-primary:focus-visible,
.home-hero-secondary:focus-visible { outline: 2px solid var(--color-brass); outline-offset: 3px; }
.home-hero-primary:hover,
.home-hero-secondary:hover { transform: translateY(-2px); }

.home-hero-credit {
  position: absolute;
  right: 18px;
  bottom: 14px;
  color: rgba(243, 227, 195, .7);
  font-size: .72rem;
}

.home-wrap p {
  font-size: 1.05rem;
}

.home-link {
  color: var(--color-brand);
  text-decoration: none;
}

.home-link:hover {
  text-decoration: underline;
}

/* Full-bleed screenshot: breaks out of the 760px wrapper to span the viewport width */
.home-figure {
  margin: 40px 0;
  text-align: center;
}

.home-screenshot {
  width: 100%;
  display: block;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
/* ---------- Section headings ---------- */
.home-section-title {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.25;
  letter-spacing: -.02em;
  margin: 56px 0 16px;
  color: var(--color-ink);
}

/* the first heading follows the hero directly: no extra gap */
.home-wrap > .home-section-title:first-child {
  margin-top: 0;
}

/* ---------- Data table ---------- */
.home-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
}

.home-table th,
.home-table td {
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--color-line);
}

.home-table thead th {
  background: var(--color-surface-2);
  font-weight: 600;
  color: var(--color-ink);
}

.home-table-highlight td {
  font-weight: 700;
  color: var(--color-brand-dark);
  background: var(--color-brand-soft);
}

/* ---------- Steps & reasons lists ---------- */
.home-steps,
.home-reasons {
  padding-left: 24px;
  margin: 16px 0 24px;
}

.home-steps li,
.home-reasons li {
  margin-bottom: 12px;
  font-size: 1.05rem;
}

/* ---------- Volunteer form ---------- */
.home-form-card {
  margin-top: 48px;
  padding: 32px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.home-form-title {
  font-size: 1.3rem;
  margin: 0 0 8px;
}

.home-form-subtitle {
  font-size: 0.92rem;
  color: var(--color-muted);
  margin: 0 0 24px;
}

.home-form-success {
  color: var(--color-success);
  font-size: 1.05rem;
  margin: 0;
}

.home-field {
  margin-bottom: 20px;
}

.home-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-ink);
}

.home-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  box-sizing: border-box;
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-ink);
  background: var(--color-surface);
  border-color: var(--color-line-strong);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.home-input::placeholder {
  color: var(--color-faint);
}

.home-input:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(154, 47, 30, .15);
}

textarea.home-input {
  resize: vertical;
  min-height: 110px;
}

.home-submit {
  width: 100%;
  background: var(--color-brand);
  color: var(--color-surface);
  border: none;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.home-submit:hover {
  background: var(--color-brand-dark);
}

.home-submit:active {
  background: var(--color-walnut);
}

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
  .home-hero {
    min-height: calc(100svh - 56px);
    margin-inline: -14px;
  }

  .home-hero-content {
    width: calc(100% - 36px);
    padding: 72px 0 82px;
  }

  .home-hero-shade {
    background: linear-gradient(0deg, rgba(30, 18, 12, .9) 0%, rgba(30, 18, 12, .45) 72%, rgba(30, 18, 12, .2) 100%);
  }

  .home-wrap {
    padding: 32px 18px;
  }

  .home-wrap p {
    font-size: 1rem;
  }

  .home-form-card {
    padding: 22px;
    border-radius: 14px;
  }

  .home-form-title {
    font-size: 1.2rem;
  }

  .home-figure {
    margin: 32px 0;
  }
  .home-section-title {
    font-size: 1.15rem;
    margin: 28px 0 10px;
  }

  .home-table {
    font-size: 0.88rem;
  }

  .home-table th,
  .home-table td {
    padding: 8px 10px;
  }
}

.home-audience { list-style: none; padding: 0; display: grid; gap: 1rem; }
.home-audience li { padding: 1.25rem; border: 1px solid var(--color-line); border-top: 3px solid var(--color-brand); border-radius: var(--radius-md); background: var(--color-surface); box-shadow: var(--shadow-sm); }
.home-audience strong { display: block; margin-bottom: .35rem; }
@media (min-width: 760px) { .home-audience { grid-template-columns: repeat(3, 1fr); } }

.home-cta { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1.5rem 0 .5rem; }
.home-cta-link { display: inline-block; padding: .72rem 1.4rem; border-radius: 999px;
  background: var(--color-brand); color: var(--color-surface); text-decoration: none; font-weight: 700; }
.home-cta-link:hover { background: var(--color-brand-dark); }
.home-cta-secondary { background: transparent; color: var(--color-brand-dark); border: 1px solid var(--color-brand); }
.home-cta-note { font-size: .9rem; color: var(--color-muted); margin-top: 0; }

.home-faq { margin-bottom: 2rem; }
.home-faq-item { border-bottom: 1px solid var(--color-line); padding: 1rem 0; }
.home-faq-item summary { cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 1.5rem; }
.home-faq-item summary:hover { color: var(--color-brand); }
.home-faq-item summary::-webkit-details-marker { display: none; }
.home-faq-item summary::after { content: "+"; position: absolute; right: 0; font-weight: 400; color: var(--color-brand); }
.home-faq-item[open] summary::after { content: "−"; }
.home-faq-item p { margin: .6rem 0 0; }

.home-figcaption { font-size: .78rem; color: var(--color-muted); margin-top: .4rem; text-align: center; }

/* contact form honeypot: off-screen rather than display:none, which some
   bots detect */
.home-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* the carpet strip under the header (base.css) clashes with the hero photo:
   hidden on the home page only (body class set in home.html; this file is
   also loaded by the info page, which keeps the strip) */
.page-home .navbar::after {
  display: none;
}
