/*
 * Homepage-only blocks of the 2026 photo-led design: hero, agenda, impact
 * numbers, support and partners. Linked from app/(frontend)/page.tsx.
 * Tokens and the shared blocks (buttons, photo tiles, "Kom gerust
 * kennismaken") live in theme-2026.css, which every page loads.
 */

/* ---------- hero ---------- */

.hp-hero {
  position: relative;
  background: var(--hp-cream);
  overflow: hidden;
  min-height: clamp(420px, 44vw, 560px);
  display: flex;
  align-items: center;
}

.hp-hero-photo {
  position: absolute;
  inset: 0 0 0 auto;
  width: 64%;
}
.hp-hero-photo .hp-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
/* The foundation's badge as a seal on the photo, in the corner where a photo
   usually shows table or floor rather than faces. It sits on a cream sticker
   with a white rim and a stitched ring, so it reads on any photo and matches
   the cream page; the amber spark is the one beside "Kom gerust kennismaken".
   Nothing moves. */
.hp-hero-seal {
  position: absolute;
  right: clamp(20px, 3vw, 44px);
  bottom: clamp(20px, 2.8vw, 40px);
  z-index: 2;
  width: clamp(136px, 13.5vw, 200px);
  aspect-ratio: 1;
  transform: rotate(-8deg);
}
/* The sticker is drawn a little higher than the box because the logo file
   has more empty space below the badge than above it. */
.hp-hero-seal::before,
.hp-hero-seal::after {
  content: '';
  position: absolute;
  border-radius: 50%;
}
.hp-hero-seal::before {
  inset: -4% -2% 0;
  background: var(--hp-cream);
  border: 3px solid #fff;
  box-shadow:
    0 16px 32px rgba(15, 63, 76, 0.28),
    0 3px 8px rgba(15, 63, 76, 0.14);
}
.hp-hero-seal::after {
  inset: 0 2% 4%;
  border: 1.5px dashed rgba(15, 63, 76, 0.3);
}
.hp-hero-seal img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.hp-hero-seal .hp-spark {
  left: -17%;
  top: -12%;
  width: 30%;
  height: auto;
  transform: rotate(-14deg);
}
/* Soft fade from the cream background into the photo, as in the design. */
.hp-hero-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--hp-cream) 0%,
    rgba(251, 246, 238, 0.7) 10%,
    rgba(251, 246, 238, 0) 30%
  );
  z-index: 1;
}

.hp-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px;
}

.hp-hero-text { max-width: 560px; }

.hp-hero h1 {
  position: relative;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--hp-teal);
  margin: 0;
}

.hp-hero-heart {
  display: inline-block;
  width: 0.62em;
  height: 0.62em;
  margin-left: 0.08em;
  vertical-align: top;
  color: var(--hp-amber);
  transform: rotate(14deg);
}

.hp-hero-intro {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  color: var(--hp-text);
  margin: 18px 0 30px;
  max-width: 36ch;
}

/* ---------- agenda ---------- */

.hp-head-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.hp-head-row .hp-h2 { margin: 0; }

.hp-events {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hp-event {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--hp-radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--hp-text);
  box-shadow: 0 8px 22px rgba(15, 63, 76, 0.1);
  transition: transform 0.15s ease;
}
.hp-event:hover { transform: translateY(-3px); }

.hp-event-img {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--hp-sky);
}
.hp-event-img svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hp-event-date {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 54px;
  padding: 6px 8px;
  border-radius: 12px;
  background: #fff;
  color: var(--hp-teal);
  line-height: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.hp-event-date .day {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
}
.hp-event-date .mon {
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-top: 2px;
}

.hp-event-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px 18px;
}
.hp-event-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--hp-teal);
}
.hp-event-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
}

/* ---------- impact numbers ---------- */

.hp-stats {
  margin-top: 64px;
  background: var(--hp-teal);
  color: #fff;
}
.hp-stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  text-align: center;
}
.hp-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hp-stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--hp-amber);
  line-height: 1;
}
.hp-stat-label {
  font-weight: 700;
  font-size: 1rem;
  opacity: 0.92;
}

/* ---------- support ---------- */

.hp-donate {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 28px 48px;
  align-items: center;
  padding: 40px 48px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 63, 76, 0.1);
}
.hp-donate .hp-h2 { margin-bottom: 12px; }
.hp-donate .hp-h2 em { color: var(--hp-amber-600); }
.hp-donate p {
  margin: 0;
  font-size: 1.1rem;
  color: var(--hp-text);
}

.hp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.hp-chips .amount-chip {
  min-height: 48px;
  min-width: 64px;
  padding: 0 16px;
  border-radius: 12px;
  border: 2px solid var(--hp-sky);
  background: var(--hp-cream);
  color: var(--hp-teal);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
}
.hp-chips .amount-chip.active {
  border-color: var(--hp-teal);
  background: var(--hp-teal);
  color: #fff;
}

.hp-support > * + * { margin-top: 28px; }

/* "Lopende actie" card (CampaignSpotlight), shown above the donate block when
   an active campaign is set to appear on the homepage. Its old styles lived in
   home-styles.css, which the redesigned homepage no longer loads. */
.camp-spot {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 63, 76, 0.1);
}
.camp-spot-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}
.camp-spot-img--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--hp-sky), #fdf0cf);
}
.camp-spot-body { padding: 32px 40px; }
.camp-spot-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.camp-spot-eyebrow {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--hp-amber);
  color: var(--hp-teal);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.camp-spot-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.1;
  color: var(--hp-teal);
}
.camp-spot-figs {
  margin: 12px 0 20px;
  font-size: 1.05rem;
  color: var(--hp-text);
}
.camp-spot-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 14px;
  background: var(--hp-teal);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.camp-spot-cta:hover { background: var(--hp-teal-700); transform: translateY(-2px); }
.camp-spot-cta:focus-visible { outline: 3px solid var(--hp-amber-600); outline-offset: 3px; }
.camp-spot-proof {
  margin: 14px 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--hp-text);
}

/* ---------- partners ---------- */

.hp-partners {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 72px;
  text-align: center;
}
.hp-partners h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--hp-teal);
  margin: 0 0 18px;
}
.hp-partner-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.hp-partner {
  padding: 12px 20px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid var(--hp-sky);
  color: var(--hp-teal);
  font-weight: 800;
  text-decoration: none;
}
.hp-partner:hover { border-color: var(--hp-teal); }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hp-events { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-stats-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .hp-donate { grid-template-columns: 1fr; padding: 32px 28px; }
}

@media (max-width: 760px) {
  .hp-hero {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }
  .hp-hero-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    order: -1;
  }
  .hp-hero-photo::before {
    background: linear-gradient(0deg, var(--hp-cream) 0%, rgba(251, 246, 238, 0) 30%);
  }
  .hp-hero-seal { width: 108px; right: 18px; bottom: 16px; }
  .hp-hero-inner { padding: 8px 16px 40px; }
  .hp-hero-intro { margin: 12px 0 24px; }

  .hp-events { grid-template-columns: 1fr; }
  .hp-event-img { aspect-ratio: 21 / 9; }

  .hp-partners { padding: 44px 16px 56px; }

  .camp-spot { grid-template-columns: 1fr; }
  .camp-spot-img { height: 200px; min-height: 0; }
  .camp-spot-body { padding: 26px 24px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .hp-event,
  .camp-spot-cta { transition: none; }
  .hp-event:hover,
  .camp-spot-cta:hover { transform: none; }
}
