/* ═══ AFTITELING — gedeelde footer, alle pagina's ═══ */
.aftiteling {
  background: var(--bg);
  color: var(--navy);
  padding: 96px 0 48px;
  font-family: var(--font);
  position: relative;
  z-index: 1;
}
.aftiteling-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* LAYER 1 — Merk-blok: logo + payoff, links uitgelijnd, full-width container */
.aftiteling-merk {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 64px;
}
.aftiteling-logo {
  display: inline-block;
  text-decoration: none;
  line-height: 0;
  color: var(--navy);
}
.aftiteling-logo-mask {
  display: block;
  height: 56px;
  aspect-ratio: 3 / 1;
  background-color: currentColor;
  -webkit-mask: url(/assets/logo-whayle.svg) no-repeat center / contain;
  mask: url(/assets/logo-whayle.svg) no-repeat center / contain;
  transition: opacity .25s ease;
}
.aftiteling-logo:hover .aftiteling-logo-mask { opacity: 0.72; }

.aftiteling-payoff {
  font-family: var(--font);
  font-weight: 300;
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: var(--navy);
  margin: 16px 0 0 0;
}

/* LAYER 2 — Content-grid: 12-kol, contact links, legal rechts, midden vrij */
.aftiteling-content-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 32px;
  margin-bottom: 64px;
}
.aftiteling-contact { grid-column: 1 / span 4; }
.aftiteling-legal   { grid-column: 9 / span 4; }

.aftiteling-contact {
  font-family: var(--font);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  color: var(--navy);
}
.aftiteling-adres {
  font-style: normal;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.aftiteling-adres a {
  align-self: flex-start;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color .2s ease, border-bottom-color .35s ease;
}
.aftiteling-adres a:hover {
  border-bottom-color: rgba(0,133,136,.45);
}

.aftiteling-lijst {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.aftiteling-lijst a {
  font-family: var(--font);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(28,30,77,.7);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color .2s ease, border-bottom-color .35s ease;
}
.aftiteling-lijst a:hover {
  color: var(--navy);
  border-bottom-color: rgba(0,133,136,.45);
}

/* LAYER 3 — Fin-blok: copyright + back-to-top */
.aftiteling-fin {
  border-top: 1px solid rgba(28,30,77,.10);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.aftiteling-stempel,
.aftiteling-top {
  font-family: var(--font);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
}
.aftiteling-stempel {
  font-size: 12px;
  color: rgba(28,30,77,.55);
  margin: 0;
}
.aftiteling-top {
  font-size: 13px;
  color: rgba(28,30,77,.7);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .2s ease;
}
.aftiteling-top:hover { color: var(--navy); }
.aftiteling-top:hover .aftiteling-top-arrow { transform: translateY(-2px); }
.aftiteling-top-arrow {
  display: inline-block;
  transition: transform .25s ease;
}

@media (max-width: 1023px) {
  .aftiteling {
    padding: 64px 0 32px;
  }
  .aftiteling-inner {
    padding: 0 24px;
  }
  .aftiteling-merk {
    margin-bottom: 48px;
  }
  .aftiteling-content-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    column-gap: 16px;
    margin-bottom: 48px;
  }
  .aftiteling-contact { grid-column: 1 / span 4; }
  .aftiteling-legal   { grid-column: 5 / span 4; }
}

@media (max-width: 767px) {
  .aftiteling {
    padding: 48px 0 24px;
  }
  .aftiteling-inner {
    padding: 0 16px;
  }
  .aftiteling-merk {
    margin-bottom: 32px;
  }
  .aftiteling-content-grid {
    grid-template-columns: 1fr;
    row-gap: 32px;
    margin-bottom: 32px;
  }
  .aftiteling-contact,
  .aftiteling-legal { grid-column: 1 / -1; }
  .aftiteling-logo-mask { height: 40px; }
  .aftiteling-fin {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }
}
